Guest Posted April 6, 2014 Share Posted April 6, 2014 (edited) Hey everyone, Is it possible that a small white border is automatically being added to my product images by prestashop? Here is a picture to illustrate.. and the photos that are uploaded are perfectly square. Thanks in advance! Edited April 7, 2014 by Guest (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 6, 2014 Share Posted April 6, 2014 you can achieve it with css styles, it's much better in my opinion than border added to image. you can control it anytime you want.. and stylize exactly as you want with simple change to css stylesheet Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2014 Share Posted April 6, 2014 Hey vekia, The issue is that as you can see there is a bit of a border and I'm not sure why as there is no border in the CSS or in the image itself. Could prestashop be adding that border when I upload the image possibly? Not sure what the problem is yet. Link to comment Share on other sites More sharing options...
dioniz Posted April 6, 2014 Share Posted April 6, 2014 What is your original image width and height? Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2014 Share Posted April 6, 2014 Hey dioniz, A perfect square (736x736 in this case). That is why I don't understand why Prestashop would add a white border. :/ Link to comment Share on other sites More sharing options...
dioniz Posted April 6, 2014 Share Posted April 6, 2014 (edited) Because presta is making 750 x 750 px image as you probably have set in Preferences > Images. If Image is smaller then set in preferences, presta is adding white border to it. Make original image 750 x 750 or bigger and it will remove white border Edited April 6, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2014 Share Posted April 6, 2014 Thanks dioniz! I will try that. However, I am just wondering - doesn't prestashop generate the thumb at that 750x750 since that is set in my image settings from the 736x736 just like it does for smaller images? That is what is confusing me, especially since the ratio is 1:1 width to height. Link to comment Share on other sites More sharing options...
dioniz Posted April 7, 2014 Share Posted April 7, 2014 It's because if presta would make image bigger then original, it will become blurred. So presta makes image 750px by 750 px but by adding white border to it. I think that's good. 1 Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2014 Share Posted April 7, 2014 Makes sense! Thanks dioniz! Cheers! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now