Poor quality of images

Phoca Cart - complex e-commerce extension
robertd
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 08 Oct 2019, 22:31

Poor quality of images

Post by robertd » 08 Oct 2019, 22:57

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!

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 41840
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Poor quality of images

Post by Jan » 10 Oct 2019, 13:40

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
If you find Phoca extensions useful, please support the project

Post Reply