Jump to content
Sign in to follow this  
MrFalk

Dont want prestashop to compress my category images or atleast dont compress them that much

Recommended Posts

Don't want Prestashop to compress my category images or atleast dont compress them that much, since it effects image quality.

Is there anywhere I can tell how much compression should be used?

Regards
MrFalk

Share this post


Link to post
Share on other sites

In images.inc.php on line 40, the image quality is set at 86% and on line 235, the image quality is set at 90%. You can try increasing these. If that doesn't work, perhaps you have an old version of the GD library installed? I think GD2 has higher quality than GD.

Share this post


Link to post
Share on other sites

Thanks for your answer Rocky,
images.inc.php is on the server and not with the Prestashop installation right?
Since im on a hosted server I dont have acces to all the files.

Regards
MrFalk

Share this post


Link to post
Share on other sites

No, images.inc.php is part of the Prestashop installation. It is in Prestashop's root directory.

Share this post


Link to post
Share on other sites

Hi,
i have found the file and looked at the lines that you suggested. My original image is .gif and i want Prestashop to create .png files, what should i do to accomplish that.

Thanks for your quick responses.
Regards
MrFalk

Share this post


Link to post
Share on other sites

By default, Prestashop converts all images to JPEGs. There is no option in the Back Office to convert them to any other format. There is a modification here that converts images to PNGs instead.

Share this post


Link to post
Share on other sites

Thanks for all your answers Rocky. Really appreciate it.

Have a nice day
Regards
Mr Falk

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More