iOS-WebP icon indicating copy to clipboard operation
iOS-WebP copied to clipboard

Can't show Image which is encoded by demo.

Open starFelix opened this issue 10 years ago • 2 comments

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.

starFelix avatar May 06 '14 08:05 starFelix

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

seanooi avatar May 24 '14 22:05 seanooi

This worked for me

weibel avatar Nov 28 '14 16:11 weibel