Jump to content

Why do my images look so bad?


Recommended Posts

Hi all,

New to prestashop but really loving it so far.

One thing though - all of my site images (product, category, logo, EVERYTHING) look terrible. I am creating everything in photoshop and it looks fine there, but when I upload to Prestashop, the quality is so bad.

Am I doing something wrong? How can I fix this? I need my images to be very sharp, and they are all fuzzy.

You can see an example here:

http://www.sweetcricketstationery.com/ (main image and logo look terrible)

Tried searching the archives, to no avail. It seems others have this problem too, but i couldn't find a solution.

Thanks for your insights and help.

Kate

Link to comment
Share on other sites

  • 4 weeks later...

Hi all.

Just looked into the problem and found this: The images generated and saved by PrestaShop actually looks as expected when saving at compression 86. I downloaded the generated jpegs from the server and looked them over locally and were surprised to see the good quality.

It now believe that it is in the showing of the images that something happens. Looking into it...

Changed both line 40 and 236 to:

40: imagejpeg($newImage, _PS_TMP_IMG_DIR_.$cacheImage, 94);

236: $flag = imagejpeg($ressource, $filename, 94);

...and got the quality I wanted. I think it is important that the image you upload to PrestaShop is itself not too jpeg compressed (close to quality=100).

Hope this helps someone?

PS. re-generate images after the change.

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 5 months later...
in /images.inc.php line #40

imagejpeg($newImage, _PS_TMP_IMG_DIR_.$cacheImage, 86);



You can increase the quality of the images by using a number higher than 86.

You will need to rebuild your images after make the change....




Hi all,
Can someone please tell me exactly which folder this line is in. I have been staring at code all night and am going cross eyed. I am having the same problem and wanted to try this. Thanks so much.
Carla
Link to comment
Share on other sites

  • 6 months later...

Tried this but it didnt work for me the images are still almost blurry and bleached..


Changed both line 40 and 236 to:

40: imagejpeg($newImage, PS_TMP_IMG_DIR.$cacheImage, 94);

236: $flag = imagejpeg($ressource, $filename, 94);

…and got the quality I wanted. I think it is important that the image you upload to PrestaShop is itself not too jpeg compressed (close to quality=100).

Hope this helps someone?

PS. re-generate images after the change.

Link to comment
Share on other sites

  • 4 weeks later...

just installed 1.4 and having problems with the quality of the frontpage images. when you go into the categories everything is fine.
I tried adjusting the above lines of code, but no luck.

With 1.3 i didn't have this problem and i'm using the same pictures...

You can view the site here:
www.deepdevotion.be

Link to comment
Share on other sites

×
×
  • Create New...