home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Internet / Web / thumbnail.lha / thumbnail.doc next >
Text File  |  1998-05-05  |  3KB  |  74 lines

  1. Thumbnail
  2. =========
  3.  
  4. Purpose
  5. -------
  6.  
  7. This Arexx program will create thumbnails, and an HTML document table using the thumbnails
  8. as the images, with its links pointing to the original full image.
  9.  
  10. Requirements
  11. ------------
  12.  
  13. You'll need ARexx, and the GfxCon program from Aminet (gfx/conv/gfxcon.lha)
  14.  
  15. Usage
  16. -----
  17.  
  18. runs from the Shell, with the following format:
  19.  
  20. rx thumbnail.rexx PATTERN SIZEX SIZEY DIRECTORY [XRESOLUTION]
  21.  
  22. PATTERN       is the extension pattern to match for the picture you want to create thumbnails for 
  23.               eg. 'GIF' or 'jpg' (no period needed)
  24.  
  25. SIZEX         are the sizes for the thumbnail. GfxCon automatically scales the thumbnails
  26. SIZEY         to fit in these resolution.
  27.                  
  28.  
  29. DIRECTORY     is the directory in which the thumbnails will be places (no '/')
  30.  
  31. XRESOLUTION   is the intended X resolution for the page ('800' for 800x600, '1024' for 1024x768, etc...)
  32.               Optional; defaults to 800
  33.  
  34. The program also has some setting which you may change; they are all in the first few lines of the code:
  35.  
  36. The directory to find the program 'GfxCon'
  37. The format for the thumbnails (can be anything GfxCon can handle)
  38. The border width for the table
  39. The quality for JPEG output
  40.  
  41. Operation
  42. ---------
  43.  
  44. You must run the program while currently in the directory where the pictures to be thumbnailed are.
  45.  
  46. Once given its arguments, the program will proceed to match filenames in the current directory. It will
  47. also create the thumbnail directory if it doesn't exist.
  48.  
  49. When a file is found, it proceeds to make a thumbnail, name it to "T_<name>" plus the proper extension,
  50. and save it to the thumbnail directory. It will then repeat for all matching files.
  51.  
  52. Once all the files are done, it will create the table for the HTML page. It will first calculate how many
  53. thumbnails will fit in the given  page resolution with the given thumbnail resolution. It will then verify
  54. and adjust as necessary this number to create a table with as few blanks as possible in the last row.
  55.  
  56. Once done, the table is saved as a stand-alone HTML page as the file 't_index.html' in the current directory.
  57.  
  58. Adding pictures or changing resolution later on
  59. -----------------------------------------------
  60.  
  61. If you wish to add pictures, or remake the table for a different resolution, simply run the script again
  62. using the same arguments as the last run, where appropriate, and the program will make thumbnails for new
  63. files, and skip those that already have thumbnails. It will then create a new table page.
  64.  
  65. If you wish to change the resolution of the thumbnails, you'll have to erase the thumbnail directory and 
  66. have them all redone again.
  67.  
  68.  
  69. That's it for this document. I created this script to create a page that would use real thumbnails, instead
  70. of a page that used the original pictures as the thumbnails (taking longer to download off the web)
  71. If you notice any bugs, have any suggestions (although this script is good enough for me, so I probably
  72. won't work on it any further), or have any modification you'd like to send, my email address is an103@torfree.net
  73.  
  74. Sebastien Boisvert