Open neil4dong opened 7 years ago
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
请问现在有计划在将来支持webp的渐进式加载吗