iOS-WebP
iOS-WebP copied to clipboard
Can't show Image which is encoded by demo.
The Image's url is http://os.yesky.com/cmsimagelist/2007/131/8dz9mbqidnd3.jpg . when I use this image for test.The image which was encoded to WebP by demo can't show.
Sorry for the late response.
I'll need more time to look into why that's happening, but for now, a temporary fix that worked for me is to use WebPDecodeRGBA
In UIImage+WebP.m
~line 146, add this line above it
uint8_t *data = WebPDecodeRGBA([imgData bytes], [imgData length], &width, &height);
and replace config.output.u.RGBA.rgba
with data
Let me know if that worked for you
This worked for me