Page 1 of 1

[SOLVED] Poor color quality in images

Posted: Thu May 22, 2014 9:34 pm
by itdes
Hello,

Thumbnail images in category pages and product pages are with very poor color quality after OpenCart resizes them. The cache is enabled and I did set the compression level in system\library\image.php to $quality = 100, but the colors in the images are still very faded. I don't have problem with file size of the images, but the colors are with less contrast than the original pictures, the products are clothes, so the real colors are really important.
Is there a way I could disable just the color compression/changes of the image?

Thanks.

Re: Poor color quality in images

Posted: Thu May 22, 2014 10:47 pm
by joemaydew
What type of file are the images? .gif .jpg .png ??

Re: Poor color quality in images

Posted: Thu May 22, 2014 10:55 pm
by itdes
The images are in .jpg format

Re: Poor color quality in images

Posted: Thu May 22, 2014 11:00 pm
by joemaydew
Do you have a link I could look at ?

Re: Poor color quality in images

Posted: Thu May 22, 2014 11:56 pm
by rph
Make sure the image color space is in RGB and not CMYK.

Re: Poor color quality in images

Posted: Fri May 23, 2014 4:09 pm
by itdes
The site is not available online yet.
The image color space is in RGB, checked it.
I guess my last option is to arrange the things in a way that the real images to be loaded always, but the problem is that their dimensions are 800x800px and when I use them for thumbnails - width=170px and some of the thumbnails seem to be a little destroyed, not visually looking good.

Re: Poor color quality in images

Posted: Fri May 23, 2014 4:19 pm
by itdes
This is an image, showing the original image color and the color it gets after OpenCart resize it.

Image

Re: Poor color quality in images

Posted: Fri May 23, 2014 11:24 pm
by rph
Can you attach the original image? I'm still thinking it's a color space issue, such as using Adobe RGB instead of sRGB.

Re: Poor color quality in images

Posted: Sat May 24, 2014 5:07 am
by itdes
Here is the original picture:
Image


And here is the picture after OpenCart resized it, the color is pretty different...:
Image

Re: Poor color quality in images

Posted: Sun May 25, 2014 6:24 pm
by itdes
Probably it had been a problem with the source image encoding, after Saving it for Web with Photoshop again in the same format - .jpg, everything was alright after uploading it to OpenCart.
Thanks for everyone's assistance.

Re: [SOLVED] Poor color quality in images

Posted: Mon May 26, 2014 6:24 am
by rph
Yep, the color space of the original was Adobe RGB instead of sRGB. Any color space other than sRGB will have conversion issues when OpenCart resizes images.