** Any one know about an Oscommerce module to resize images on the fly? **

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have seen .net programs which can actually / truley resize an image
on the fly.  This way, only one image is uploaded to a site (say the
larger image) and then when you view a page of thumbnails, the
thumbnails can actually be created on the fly at a specific size.  This
can help a site load much quicker as some sites simply constrain an
image to a smaller thumbnail even though the end-user is downloading
the whole original large image (thus the page takes a much longer time
to load).   It can be very time consuming to make 2 images (a small
thumbnail and a larger image for every image), thus I have seen a few
image manipulation programs which can do this for you on the fly on a
web site.

Has anyone seen one of these as a module plug-in / addition for


Re: ** Any one know about an Oscommerce module to resize images on the fly? **

*** cgu@laker.net wrote/escribió (22 Dec 2004 23:41:30 -0800):
Quoted text here. Click to load it

In my opinion, it doesn't make sense to resize an image *every time* it's
requested. When I write my own scripts I keep a thumbs directory and resize
images when they're uploaded. You can do it with PHP if you have gd libs
installed. I prefer to use ImageMagick though exec(), this piece of
software is installed in most Unix boxes.

As about osCommerce, I don't know whether there're modules for this but
it's not very difficult to patch the app yourself.

-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions

Re: ** Any one know about an Oscommerce module to resize images on the fly? **

Quoted text here. Click to load it

I agree with Alvaro on this to a degree. One part of this classic solution
that Alvaro did not mention is that you do want to add code to the script so
that it will do the resizing on the fly (IF) the image in the thumbnail
directory does not exist. There are various reasons why this image my not
exist, but the most common is that one decided to upload a batch of images
instead of one at a time (Example: 2000 new images because one started
working with a new drop shipper or other vendor). With this, you have a good
blend of performance/ease of use where you don't kill your server by
processing images on each and every request. The script does it only once.

As for OsCommerce... I do not know if a module off-hand, but I can tell you
that I recall OSC has a function or class that displays the image... You
could re-write or override that function/class to have the intended

If you need help with the actual code, post back here with specific needs
and you shouldn't have a problem. Hmm, maybe I should just write the darn
module -- :)

Wil Moore III, MCP | Integrations Specialist

Site Timeline