YYImage icon indicating copy to clipboard operation
YYImage copied to clipboard

Support progressive webp decoding

Open neil4dong opened this issue 7 years ago • 1 comments

请问现在有计划在将来支持webp的渐进式加载吗

neil4dong avatar Jun 20 '17 08:06 neil4dong

I think it can't be simply implement. The built-in progressive image always use ImageIO, which use CGImageSourceCreateIncremental to create and CGImageSourceUpdateData to update the image data each time it downloaded from NSURLSession delegate.

libwebp support progressive load with WebIRGBA() or something. It currently (version 0.6) only support progressive decoding for static WebP. If you're interested in this, try to learn from this PR ?(I do not have time to contribute to YY):

https://github.com/rs/SDWebImage/pull/1987/files#diff-29646b04d769e34438b2d7f56ca35323R168

dreampiggy avatar Aug 05 '17 09:08 dreampiggy