Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to prevent image enlargement?


tea

Recommended Posts

When we upload an image that is smaller than our specified Small Image size (145px width), oscommerce automatically enlarges the image to 145px width.

 

How do we prevent this enlargement (i.e., keep those wee images at their original dimensions)?

 

Thanks in advance for any tips!

 

 

Our Configuration > Images settings:

Small Image Width 145

Small Image Height 0 Info

Heading Image Width 57 Info

Heading Image Height 40 Info

Subcategory Image Width 100 Info

Subcategory Image Height 57 Info

Calculate Image Size true Info

Image Required true Info

Link to comment
Share on other sites

When we upload an image that is smaller than our specified Small Image size (145px width), oscommerce automatically enlarges the image to 145px width.

 

How do we prevent this enlargement (i.e., keep those wee images at their original dimensions)?

 

Thanks in advance for any tips!

 

 

Our Configuration > Images settings:

Small Image Width 145

Small Image Height 0 Info

Heading Image Width 57 Info

Heading Image Height 40 Info

Subcategory Image Width 100 Info

Subcategory Image Height 57 Info

Calculate Image Size true Info

Image Required true Info

 

You would have to change the code Small_Image_Width to a different setting where required, otherwise everything will be sized to 145 like you have set.

Link to comment
Share on other sites

Thanks, Ashley. I'll pass that info along to our programmer. Hopefully he can search on that parameter name in the php files and insert if-then-else statements where needed. Thanks so much!

 

You would have to change the code Small_Image_Width to a different setting where required, otherwise everything will be sized to 145 like you have set.
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...