Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can I stop thumbnail images being stretched?


devink

Recommended Posts

Hi,

 

is there a setting in admin that stops the images being stretched out of proportion?

My images are either a maximun of 100 pixels wide 100 pixels high. The second dimension could be anything between 20 and 100 pixels.

 

Will I need to change the html in index.php to deal with this, or am I asking too much because I have no definite size for the images.

 

My other option is to resize all images to 100 x 100. Anyone know of a batch tool that could do this for me, and fill the additional space with a white background? I have around 3,000 images! I tried Easy Thumbs, but it cannot fill the extra space.

Many Thanks,

 

Steve

Link to comment
Share on other sites

try this

image converter with thumbnail size this allows batch convertion with an option to choose size

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

oops I forgot you want everything the same size. If your images are very large in height and width you may be able to find a common resize for all images to get them close. Then use easy thumbs and do not let it maintain the aspect ratio. Just make them all 100x100.

 

Ifranview is a good batch conversion program.

The Wiki Docs: Read them, live them and be thankful for them!

Link to comment
Share on other sites

Thanks for the info.

 

I'm already using the BigImage contribution, hence the need for converting the images to 100 x 100 thumbnails.

 

I can't afford to stretch the images at all, it distorts the product until it's not recognisable.

 

I will check out the products you suggested.

 

There is no URL yet, I'm still developing locally.

Many Thanks,

 

Steve

Link to comment
Share on other sites

  • 1 year later...
Hi,

 

is there a setting in admin that stops the images being stretched out of proportion?

My images are either a maximun of 100 pixels wide 100 pixels high.  The second dimension could be anything between 20 and 100 pixels.

 

Will I need to change the html in index.php to deal with this, or am I asking too much because I have no definite size for the images.

 

My other option is to resize all images to 100 x 100.  Anyone know of a batch tool that could do this for me, and fill the additional space with a white background?  I have around 3,000 images!  I tried Easy Thumbs, but it cannot fill the extra space.

 

If I am remembering what I read correctly, the easiest way to stop the stretching is in Admin where the definitions for the hight and width of the images are defined. Click edit and get rid of the width altogether. That way the image will remain in proportion to itself. That way if OScommerce sets the hight to 100 the width will automatically adjust...

Read, read, read, test, read, read, test, read, implement.

Always back up your site and database before changes.

Always back up on a regular basis.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...