home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Amiga
/
Internet
/
Web
/
thumbnail.lha
/
thumbnail.doc
next >
Wrap
Text File
|
1998-05-05
|
3KB
|
74 lines
Thumbnail
=========
Purpose
-------
This Arexx program will create thumbnails, and an HTML document table using the thumbnails
as the images, with its links pointing to the original full image.
Requirements
------------
You'll need ARexx, and the GfxCon program from Aminet (gfx/conv/gfxcon.lha)
Usage
-----
runs from the Shell, with the following format:
rx thumbnail.rexx PATTERN SIZEX SIZEY DIRECTORY [XRESOLUTION]
PATTERN is the extension pattern to match for the picture you want to create thumbnails for
eg. 'GIF' or 'jpg' (no period needed)
SIZEX are the sizes for the thumbnail. GfxCon automatically scales the thumbnails
SIZEY to fit in these resolution.
DIRECTORY is the directory in which the thumbnails will be places (no '/')
XRESOLUTION is the intended X resolution for the page ('800' for 800x600, '1024' for 1024x768, etc...)
Optional; defaults to 800
The program also has some setting which you may change; they are all in the first few lines of the code:
The directory to find the program 'GfxCon'
The format for the thumbnails (can be anything GfxCon can handle)
The border width for the table
The quality for JPEG output
Operation
---------
You must run the program while currently in the directory where the pictures to be thumbnailed are.
Once given its arguments, the program will proceed to match filenames in the current directory. It will
also create the thumbnail directory if it doesn't exist.
When a file is found, it proceeds to make a thumbnail, name it to "T_<name>" plus the proper extension,
and save it to the thumbnail directory. It will then repeat for all matching files.
Once all the files are done, it will create the table for the HTML page. It will first calculate how many
thumbnails will fit in the given page resolution with the given thumbnail resolution. It will then verify
and adjust as necessary this number to create a table with as few blanks as possible in the last row.
Once done, the table is saved as a stand-alone HTML page as the file 't_index.html' in the current directory.
Adding pictures or changing resolution later on
-----------------------------------------------
If you wish to add pictures, or remake the table for a different resolution, simply run the script again
using the same arguments as the last run, where appropriate, and the program will make thumbnails for new
files, and skip those that already have thumbnails. It will then create a new table page.
If you wish to change the resolution of the thumbnails, you'll have to erase the thumbnail directory and
have them all redone again.
That's it for this document. I created this script to create a page that would use real thumbnails, instead
of a page that used the original pictures as the thumbnails (taking longer to download off the web)
If you notice any bugs, have any suggestions (although this script is good enough for me, so I probably
won't work on it any further), or have any modification you'd like to send, my email address is an103@torfree.net
Sebastien Boisvert