Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image height and width gone bonkers


Guest

Recommended Posts

I am transferring a customer site from one server to another, and I've run into an interesting problem. Both with stock osC code, and with the "moved" code, the images are not resized properly.

 

Suppose I set the small image height to 100, but leave height blank. I refresh index.php, view source, and see neither height nor width values on the images.

 

I then go back to admin, set the height and width to 100. Refresh index.php. Height and width are now both there.

 

Back to admin. Erase value for height, so only width remains (and no, I'm not setting them to zero). Refresh index.php, neither width nore height parameters show up.

 

Ideas?

 

-jared

Link to comment
Share on other sites

This is very odd. If I enter values for both fields in osC Admin, I get <width = xxx><height = xxx> in the rendered page. If I put just one of them in, neither <width = xxx> nor <height = xxx> show up.

 

The problem is that the images are not square (imagine that). If we resize them to be square then they're distorted.

 

Has anyone seen this before?

 

-jared

Link to comment
Share on other sites

No luck with that contrib. I did find a fairly decent workaround, though. Even though the admin field says to enter pixel values, I entered 75% for the height and width and it seems to work. I'll play around with the exact percentages a bit until it looks right, but that seemed to do the trick.

 

Thanks for the suggestion, Wendy!

 

-jared

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...