Xpounded Thumbnail Maker
Image Scripting: Making a thumbnail (image reduction)
This code is copyright Robert Spoons 2006
Want to use it - great, give credit.
Want to expand upon it - great, give credit.
Want to talk about it - great, give credit.
Not really asking for much- great, give credit.
Thanks.
Using nothing but script to manipulate images...
This script shows how to make a 100 x 100 thumbnail of an image.
USE:
You use the script by dragging and dropping a 24-bit non-compressed bmp file onto it.
First the script will examine its own parent folder looking for a subfolder with the same name as
the dropped file. If it can not find such a folder, it will create one.
Second, the script will do a simple analysis on the dropped image file and report its size, width, and height.
Third, the script will start manipulating the data contained in the dropped image.
It will create a new thumbnail image from the dropped image.
The reduction algorithm is one I made after looking at bilinear and bicubic interpolation methods.
It works well enough - I did let the image scale to cover the data area so distortion will
become more evident as aspect ratios differ from unity.
Hopfully you will use this file as a template to try out other reduction implementaions.
Requirements: Windows 98+, WSH 5.6+ (VBS), Image File in 24-bit non-compressed BMP format.
Tested on XP Home edition SP2, IE6 installed. (Not tested with IE7 installed)
Save this file to your system as ThumbMaker.vbs
 Select All
No HTML to View
|