Post by hbuchel » Wed May 25, 2011 9:40 pm

Using 1.4.9.5

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 1.4.9.5 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.
Last edited by hbuchel on Wed May 25, 2011 11:47 pm, edited 1 time in total.

New member

Posts

Joined
Mon Aug 30, 2010 9:41 pm

Post by qahar » Wed May 25, 2011 10:59 pm

Interesting, somehow the image library resize it into 199 and add 1px default white color.
may be some one with proper knowledge about this able to explain.

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by dengine » Wed May 25, 2011 11:34 pm

I guess it has something to do with the automatic resizing for the small images as the white border doenst appear in the big image. I'll try to have a look at the script and will reply when I find something .....

OpenCart Developer sinds versie 1.4.9.3. Inmiddels volledige CMS geïntegreerd binnen OC 1.5. Sta open voor uitdagende custom uitbreidingen en custom themes, inclusief responsive design.

GEMAAKT MET OPENCART
http://www.worldofbessy.com
http://www.kiddycolors.com
http://www.ke-works.com
http://www.trendyard.nl
http://www.bigliftshipping.nl
http://www.kosterklokken.nl


New member

Posts

Joined
Sun Mar 06, 2011 6:52 pm
Location - Colijnsplaat / Den Haag

Post by hbuchel » Wed May 25, 2011 11:46 pm

Hm, ok. The previous images I had been uploading were all 600x600+ as I didn't really care about the size on a development site.

I just uploaded one that was 500x500 and it didn't add the border after it was scaled down to 220x220. Bizarre!

New member

Posts

Joined
Mon Aug 30, 2010 9:41 pm

Post by jkwebco1 » Wed Feb 27, 2013 5:37 pm


Newbie

Posts

Joined
Wed Feb 27, 2013 5:36 pm
Who is online

Users browsing this forum: No registered users and 16 guests