Color profile being lost when Image Helper generates thumbnail

Permalink
When concrete5 generates a thumbnail for a given image, the profile data is being totally wiped out, causing all of the images to appear very dull. I've attached a screenshot of what is my Illustrator file side by side with a rendering within the browser out of concrete5 both the original uploaded JPG ($file->getRelativePath()) and the image helper's thumbnail. Has anyone had experience with this and found a workable solution? This is not the first time I've run into this issue.

Thanks!
Andrew

1 Attachment

aghouseh
 
bbeng89 replied on at Permalink Reply
bbeng89
I've noticed the same thing. It actually makes my images look slightly blurry. Glad it's not just me.
aghouseh replied on at Permalink Reply
aghouseh
Blurry might be a result of the default compression level. You can change that globally with a define in site.php or per instance like so:

$ih = Loader::helper('image');
$ih->setJpegCompression(100);
$thumb = $ih->getThumbnail($file, 200, 100);


Regarding the color, it just looks like GD does not maintain profile information for JPEG files, so the only options out of the box (without the use of 3rd party libs) are to just use a PNG or access the source image directly instead of thumbnailing.
bbeng89 replied on at Permalink Reply
bbeng89
Ah, didn't know about that. Thanks! Is the parameter to setJpegCompression just a percentage? Or what does the 100 represent?

Also, do you know what the constant I need to define in the site.php is called?