A base LRU cache that allows you to store EXIF data with the Bitmap.#2014
A base LRU cache that allows you to store EXIF data with the Bitmap.#2014extorn wants to merge 1 commit intosquare:masterfrom
Conversation
… you want) alongside the bitmap.
|
How is this related to Picasso? Where are the tests? And most important: Where did the file extension go? |
|
You may use the code as you wish. There are no tests else I'd have supplied them. I have a custom downloader, that downloads images from an http URI. This Downloader extracts the image metadata before creating an instance of DownloaderResponse. In fact, I note that I've since extended this class to provide an EXIF rotational degrees flag. This all happens because once its been converted into a Bitmap, its just a bitmap without EXIF or IPTC data. If this new code is also of interest you are welcome to it, but it really isn't that relevant to Picasso as its using a non Picasso http client. |
|
Hey, thanks for the code. Also, feel free to open issues with feature requests, too. We don't have the Cache interface anymore. I think you can achieve this independently of Picasso by keeping your own metadata cache around. Is there anything Picasso needs to do to support your use case? |
A base LRU cache that allows you to store EXIF data (or whatever else you want) alongside the bitmap.