Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image proportions


erikg

Recommended Posts

When I have a picture that is wider than it is tall, then the thumbnail looks "funny".

 

I have tried to set the "Constrain Proportion" value to "true" and then to "false" but I cannot see any difference??

Link to comment
Share on other sites

To get proportions to behave, I simply removed the height definitions from Admin>Configure>Images. That way, all images will be the same WIDTH, but the height changes to its appropriate proportion. It's the same as not defining the width in an <IMG SRC> tag.

Link to comment
Share on other sites

I guess you mean the value and not the permissions?

 

The values for all the image parameters you set under Configuration>Images and then you simply change the values you wish to change.

Link to comment
Share on other sites

  • 8 months later...
To get proportions to behave, I simply removed the height definitions from Admin>Configure>Images. That way, all images will be the same WIDTH, but the height changes to its appropriate proportion. It's the same as not defining the width in an <IMG SRC> tag.

you have no idea how long i was staring at code to do this. Now i feel retarted. I knew the proportion code was there but didnt understand why it wasnt working, didnt know that setting FORCED the size, thought it was just a baseline

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...