onevcat / Kingfisher

A lightweight, pure-Swift library for downloading and caching images from the web.
MIT License
23.41k stars 2.66k forks source link

Does this alter images after they're downloaded? #2137

Open jerrellmardis opened 1 year ago

jerrellmardis commented 1 year ago

Does this alter images after they're downloaded? I noticed that if I download image data from a server using URLSession and create a UIImage from the downloaded data the image is rendered properly in HDR. However, if I download the image using Kingfisher's retrieveImage function and create a UIImage from the downloaded data the image is not rendered properly in HDR. In addition, I noticed that the data Kingfisher returns is much larger than the source data. For example, I downloaded an image using URLSession and the data size was 1.8 MB but doing the same with Kingfisher resulted in a data size that was 31 MB.

Ideally, I'd like to use Kingfisher to download, cache and pass back the raw unaltered image data. From what I've found Kingfisher seems to mainly work with downloading and setting image data on UIImages.

anddygon commented 12 months ago

same issue,

alexanderkhitev commented 7 months ago

Hello! Any news/updates? Thanks

kevinmore commented 1 month ago

Would be great if Kingfisher can integrate HDR support using the official demo app: https://developer.apple.com/documentation/uikit/images_and_pdf/supporting_hdr_images_in_your_app