PDA

View Full Version : Auto thumbnailer


Jase
11-11-05, 11:34 AM
Anyone know of a script that will auto thumbnail images on the fly? Im not looking for a full on gallery script by the way just an add on to use on a web page with half a dozen images or so.

I have used some scripts in OSCommerce which do exactly this - they resize the image so it is physically smaller but they also resample it so the image is MUCH smaller in "weight" (anything down to 10% of the original file size although the quality of the output looks shit lol).

Importantly, though, you only have to upload one image and it doesnt actually create a physical thumbnail image in your images directory - it just does some jiggery pokery in the background and hey presto bobs your uncle and all that!

Jase

Rosie
11-11-05, 11:40 AM
Windows have a power toy that adds an image resizer to your right click menu. You can specify and size you want and have it rename the files so they don't overwrite the full size pics. Search on "Image Resizer" on the micro$oft site.

JP
11-11-05, 01:18 PM
someone versed in the dark arts of ImageMagick sould be able to knock something up for you in minutes ...

JP
11-11-05, 01:26 PM
Importantly, though, you only have to upload one image and it doesnt actually create a physical thumbnail image in your images directory - it just does some jiggery pokery in the background and hey presto bobs your uncle and all that!
Eh? You dont want images resized everytime a page loads surely? - I may have a small script kicking around that creates thumbs thinking about it ... but it does exactly that - creates physical thumbnails on your server ...

Jase
11-11-05, 01:31 PM
Eh? You dont want images resized everytime a page loads surely? - I may have a small script kicking around that creates thumbs thinking about it ... but it does exactly that - creates physical thumbnails on your server ...

That was how the OSCommerce script did it - you uploaded one image and it used GDLib to create a thumbnail on the fly when a user requests the thumb. Added a little bit of overhead on the server side but it was minute and the box this is on is WAY overkill but, either way, got it working now but using the method where it creates a thumb at the point the image is uploaded so there are two images.

JP
11-11-05, 01:32 PM
got it working now but using the method where it creates a thumb at the point the image is uploaded so there are two images.
:thumbsup: