- Support animated gifs in web view
- Support animated gifs in native image gallery
Problem
SDWebImage API doesn't allow you to read (or write) image data directly from disk (as it's optimized for memory <- disk <- network fallbacks). This has led to us serializing images from the cache before returning to the WebView. Unfortunately, there's no built-in support for serializing GIFs from a UIImage.
Possible Solutions
- Add a library to serialize GIFs from UIImage (e.g. https://github.com/mattt/AnimatedGIFImageSerialization)
- Serve the unaltered data from the server to the UIWebView, using our own downloader combined with disk caching w/ the shared SDImageCache
- Disable the article image protocol and see what happens?
Key Metrics
- CPU
- Disk
- Memory
- Network
- First paint(?)
When presenting a page w/ many images and a warm/cold cache.
Related tickets: T95350