Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Ratios??


VyReN

Recommended Posts

Alright ... I've been all over the contribs and all over the forums... But still confused.

 

How do I keep my image ratios in my cart?? A bunch of images are wider than tall, and when displayed on the cart.... Doesn't look good.

 

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

Ah, Glen, or anyone else...if you could illuminate me (and others) on this one, I'd be most appreciative.

 

When I set my thumb sizes in the Admin, the uploaded images then get resized to those height and width specs.

 

However, this really "seems" to be counterproductive for some images.

 

ie. Some of the thumb images look just right at say 100 (h) x 30 (w). But some look squashed up.

 

So then I increase the width. The original skinny ones now look stretched as thumbs.

 

What's the solution? I've played with some contributions, but still no luck. I'm sure there's something simple, but my brain is kinda fogged up with a myriad of other issues and problems. I bet its right under my nose, so to speak :)

 

Someone please help...

Evolve to Darkness

Link to comment
Share on other sites

Thx for that. This works, but now I've discovered that the thumbs are actually just a html resize of the original pic/photo. Not an actual thumb. So, this brings up speed and traffic issues.

 

Is there something that allows for the creation of thumbs on the fly or off-line which when clicked will bring up the Big photo/pic?

 

I'll keep looking thru the forums and post what I find but if anyone "just knows" please let me/us know.

 

thx

Evolve to Darkness

Link to comment
Share on other sites

Well, after hours of looking thru the threads and playing with contributions, I've worked out what works. (for me at least)

 

I downloaded the Big Image 1.23a contribution, installed it, and then did the following.

 

I used Irfan View (free image utility that works fast) to make thumbnails of my original images. (I used dimensions of 80pixels for the height and left the width with no value. Ticked the Preserve Aspect Ratio and ticked Use Resample Function in Irfan). Thumbs were outputted to a thumb folder.

 

Then in oscommerce I went to Admin, Configuration, Images and put in 0 for small image width and 80 for small image height.

 

Then i went to Categories, and filled in the product details and for Product Image, I navigated to thumbs and chose the thumb image of my choice.

 

For Big Product Image I navigated to the original 'big' image.

 

So now, the thumb is not stretched or squashed. And neither is the thumb the 'large' image resized artificially. Or sucking bandwidth and slowing everything down to no end. The surfer can then click on the thumb and the 'big' original image is displayed.

 

Hope this helps others. Below are all the threads I checked out. Sorry if there's no notes on each, but i was in a mad rush. But it can save time rather than sifting thru 90 pages on the search term "image resizing" or the like :)

 

http://www.oscommerce.com/forums/viewtopic.php...sizing&start=10

 

 

http://www.oscommerce.com/forums/viewtopic.php...=image+resizing

 

 

http://www.oscommerce.com/forums/viewtopic.php...=image+resizing

 

 

http://www.oscommerce.com/forums/viewtopic.php...=image+resizing

 

 

http://www.oscommerce.com/forums/viewtopic.php...=image+resizing

 

 

http://www.oscommerce.com/downloads.php/co...ions,379/type,3

 

http://www.oscommerce.com/forums/viewtopic.php...=image+resizing

 

 

http://www.oscommerce.com/forums/viewtopic.php...=image+resizing

 

 

http://www.oscommerce.com/forums/viewtopic.php...=image+resizing

 

http://www.oscommerce.com/community.php/fo...i,26715/t,26715

 

http://www.oscommerce.com/forums/viewtopic.php...ight=thumbnails

 

http://www.oscommerce.com/forums/viewtopic.php...ight=thumbnails

 

Maybe later I might try the php image resampler contribution and see it it can just do stuff on the fly, but really, getting all my thumbs ready (about 2000 of them) only took me about 15-20 minutes with stuffing around, etc).

 

The tedious part and real challenge will be to update all my relevant csv files off line then and import them into my database. In theory, simple. But goddam tedious.

 

To be continued.... :)

Evolve to Darkness

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...