A.V.E Posted May 24, 2021 Share Posted May 24, 2021 Hello. I have changed the size for thumbnails to match the category box. It worked but there are white borders on the image itself. Can this be altered? Where is the code that adds white borders? Prestashop is good. Thank you Link to comment Share on other sites More sharing options...
musicmaster Posted May 24, 2021 Share Posted May 24, 2021 12 minutes ago, A.V.E said: Hello. I have changed the size for thumbnails to match the category box. It worked but there are white borders on the image itself. Can this be altered? Where is the code that adds white borders? Prestashop is good. Thank you There will always be white borders in two cases: - if the target image is larger than the base image from which it is derived the base image will be shown in its original size with white borders to achieve the larger size. - if the width-height proportion of the target image is different from that of the source image then the image will be resized so that the whole image is shown. That means that at two sides you will get white space. Link to comment Share on other sites More sharing options...
A.V.E Posted May 24, 2021 Author Share Posted May 24, 2021 If I can just skip to "the code that makes the white borders", then I wont have to double check the image sizes Link to comment Share on other sites More sharing options...
A.V.E Posted May 24, 2021 Author Share Posted May 24, 2021 I'm sorry , but the bordered are evenly/symetrically spread around the image - the resulting image has the same with/height-ratio... that's what I mean Link to comment Share on other sites More sharing options...
musicmaster Posted May 24, 2021 Share Posted May 24, 2021 1 minute ago, A.V.E said: I'm sorry , but the bordered are evenly/symetrically spread around the image - the resulting image has the same with/height-ratio... that's what I mean That was my first point Link to comment Share on other sites More sharing options...
A.V.E Posted May 24, 2021 Author Share Posted May 24, 2021 I need this for the thumbnails b.t.w. They are often smaller than the original image, right? Link to comment Share on other sites More sharing options...
musicmaster Posted May 24, 2021 Share Posted May 24, 2021 2 hours ago, A.V.E said: I need this for the thumbnails b.t.w. They are often smaller than the original image, right? Nowadays hi-res images are in fashion. They have twice as much pixels in each direction. Link to comment Share on other sites More sharing options...
A.V.E Posted May 24, 2021 Author Share Posted May 24, 2021 Ok, thanks 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