I'm uploading square images to a theme, and setting their dimensions in the admin to also be square, so that there is no white space around the images when they are resized. However, my "Product List Size" always adds a 1px border to the right and bottom of my image when I set it to 220px x 220px (which is what I would like to use for the current theme I am developing.)
Oddly it only seems to do it for that particular size. If I set it to 221 x 221, the border goes away, or 219 x 219 the border goes away. I first noticed this in the theme I was creating, so I did a clean install of 188.8.131.52 on my server and the problem still persists even with the default theme. I've made the background black so you can see an example.
http://demo.heather-buchel.com/brava/ (first product, yellow couch image)
Any ideas on why its only doing this for that particular size?
Edit: For the time being, I've just set them to 221px by 221px and resize them with CSS down a pixel, but I thought this sort of odd and worth asking about.
OpenCart Developer sinds versie 184.108.40.206. Inmiddels volledige CMS geïntegreerd binnen OC 1.5. Sta open voor uitdagende custom uitbreidingen en custom themes, inclusief responsive design.
GEMAAKT MET OPENCART
I just uploaded one that was 500x500 and it didn't add the border after it was scaled down to 220x220. Bizarre!
http://www.opencartnews.com/tutorials/a ... ge-resize/
Users browsing this forum: No registered users and 16 guests