Page 1 of 1

Poor quality of images

Posted: 08 Oct 2019, 22:57
by robertd
Hi all guys,

I'm new to phoca cart.
I've uploaded some images properly resized to result in a good compromise between size and quality.
When I see them directly with an image viewer they are pretty good. However, once assigned to products, their quality is quite poor.
I see phoca cart generates automatically a thumbnail for each product starting from the image I've have uploaded and this thumbnail is used in the Category and Items View. However, once I click on the product, I would expect to see the image I have uploaded or, at least, to see it when clicking on the image itself. Instead, it seems to me that the image shown is always the thumbnail.
This is a bit annoying, since I'm creating a website to sell photos to my customers.
I'm pretty sure I'm doing something wrong, however I can't figure it out.
Can someone help me?
Many thanks in advance!

Re: Poor quality of images

Posted: 10 Oct 2019, 13:40
by Jan
Hi, are you able to test Phoca Cart 3.4.0 Beta on some test server. There the quality of jpeg was changed from 85% to 100%.

Or you can try to open this file:
administration/components/com_phocacart/libraries/phocacart/image/magic.php

and on line 40 change
FROM:

Code: Select all

$jpeg_quality		= $params->get( 'jpeg_quality', 85 );
TO:

Code: Select all

$jpeg_quality		= $params->get( 'jpeg_quality', 100);
Now when you set the same size as the image have, you should get the best quality server can make.

Jan