image icon indicating copy to clipboard operation
image copied to clipboard

Images lose their saturation in thumbnails

Open motosha opened this issue 4 years ago • 4 comments

I have a problem and am getting stuck. The pictures are in RGB colors and in jpg format. When I upload the images the saturation in the thumbnails is reduced and I don't know what it could be. I hope you can help me!

Example:

Original Pic

test - 4928x3075

thumb test - 640x399

motosha avatar Jul 14 '20 20:07 motosha

I found out that it has to do with the ICC color profiles, but still no idea how to solve that.

motosha avatar Jul 14 '20 21:07 motosha

Hi, did you ever found a solution for this? Thanks

nam-co avatar Aug 09 '20 22:08 nam-co

There is somehow a great article regarding this issue. I am experiencing the same issue with our site.

https://stackoverflow.com/questions/5773032/how-to-stop-gd2-from-washing-away-the-colors-upon-resizing-images

allaniftrue avatar Jul 19 '22 01:07 allaniftrue

Hi, thanks for the suggestion, what I ended up doing is uploading to cloudinary and letting them do the process

nam-co avatar Jul 19 '22 02:07 nam-co

This seems to be an issue with Version 2 of Intervention Image ignoring color profiles.

Version 3 of Intervention Image supports color profiles. But only with the Imagick driver. Unfortunately, it is still not possible to interpret color profiles with the GD library and therefore also not with Intervention Image and the driver for this library.

See https://github.com/Intervention/image/issues/707#issuecomment-1870271306

olivervogel avatar Dec 29 '23 17:12 olivervogel