Jump to content

How to remove white boarders for products


Recommended Posts

hi

 

does anyone know how to remove the white borders on prestashop 1.6

 

all my images are jpg and do have small white borders to them however on the site the white borders take up most of the image or can i change the white border to match the background colour of the site?post-380599-0-82358800-1434757265_thumb.jpg

Link to comment
Share on other sites

It is likely down to the size of the original image.  If it is less than the size of the image required, then prestashop pads it out with whitespace rather than zooming it.  

 

As a stop-gap, I upscaled all my small images while I got around to replacing them using the following (*nix command line) command within the images folder.

/// find all small product images
 
find . -type f -name \*.jpg -not -name \*-\* -exec exiftool -q  -if '$ImageHeight < 500 && $ImageWidth < 500' -p '$Directory/$FileName' {} \; > /tmp/smallimagefiles
 
//// upsize all too-small images
mogrify -resize 500x500^ @/tmp/smallimagefiles
  • Like 1
Link to comment
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
×
×
  • Create New...