ReactionCode Posted June 27, 2012 Share Posted June 27, 2012 I have a headache to find a solution to the quality of images that provides prestashop. I would like to know the solution to avoid compression when creating the image and scale only. By compressing the images for prestashop, the images are left with a dirty background. I have prestashop 4.8.2. PHP 5.2.11 Also tested with XAMPP with PHP 5.3.8 The quality of the pictures in prestashop, are 100 jpg, and png to 0. I have also tried to change in images.inc.php as explained in: http://forge.prestashop.com/browse/PSCFI-2470 I attach one example. the 3237-1181.jpg file is the original and the 3237-1181-large.jpg is prestashop compressed I don't like the compression. Link to comment Share on other sites More sharing options...
shacker Posted July 1, 2012 Share Posted July 1, 2012 When you scale a picture to less size, you lost pixels, so is normal to have less quality your both images have diffrent sizes Link to comment Share on other sites More sharing options...
kfc0209 Posted January 5, 2013 Share Posted January 5, 2013 I face the same problem - the white background of the photo turns "dirty" after compression by the website. It is not a simple issue of losing quality due compression - the object itself looks good enough after compression, but the problem is in the background - the original photo on the left has a pure white background, but after compression the white background has got a tint of grey introduced (or grey dots mingled with the white dots) and looks dirty. It is a problem of how PHP handles image rescaling and compression - I wonder if there are any PHP experts who can help resolve this issue? 1 Link to comment Share on other sites More sharing options...
tdr170 Posted January 5, 2013 Share Posted January 5, 2013 Try this go to preferences, images and change the compression quality to 100 for jpeg and 0 for png. Most photo programs already compress the image and Prestashop does it again. Link to comment Share on other sites More sharing options...
kfc0209 Posted January 5, 2013 Share Posted January 5, 2013 I changed the figures but the grey dots are still there mingled in the white background. I think these parameters may only affect the size of the compressed image. Link to comment Share on other sites More sharing options...
tdr170 Posted January 5, 2013 Share Posted January 5, 2013 No I think the sizes are registered in the image upload size in the area above this. And it does state quality not size. I have seen this before and have had issues on clients sites have never seen a good solution. Do a google search for losing image quality on upload prestashop and you will find many links to other discusions one may help. here is one I found. http://www.prestashop.com/forums/topic/167603-product-images-losing-quality/ Link to comment Share on other sites More sharing options...
kfc0209 Posted January 6, 2013 Share Posted January 6, 2013 Good that you brought up that thread! At the bottom of the thread is the exact same problem that I am facing (posted by duncanmoo 10 May 2012 - 03:48 PM). There you see a side-by-side comparison of 2 compressed photos with a white background - the one on the right has dirty patches added. It is a problem with PHP image compression. What I am looking for here is someone who can resolve this problem with PHP. If there is no solution I will switch to another platform same as PristineReefs in that thread. Link to comment Share on other sites More sharing options...
parvaiz13 Posted August 31, 2015 Share Posted August 31, 2015 I was also surfing the webs to find out any lossless image compression source, then google sent me to http://CompressPic.com where actually my problem was solved. I must recommend it to you, it will solve your problem. Link to comment Share on other sites More sharing options...
Recommended Posts