Previous page: Image Converter  
Web Page Maker    

This is a script to take original images and generate the images used by the web pages created. This script must be run once for each image supplying the image file and the base directory for the resulting web pages.

The base directory used and subdirectories small and pics will be created if they do not already exist.

The original will be scaled to generate a small image which is no more than 256 pixels wide and 192 pixels high (maintaining aspect ratio) and a larger image no more than 1024 pixels wide and 768 pixels high. The images created will be the largest that fir these criteria.

The script uses jpegtopnm, pnmscale and ppmtojpeg from the PPM toolset. These also have the advantage of generating quite small files by using JPEG compression techniques without noticably degrading image quality which helps prevent your pages from taking too long to download for users.

Note that the script was designed to use the bash shell and the first line should be edited to reflect this shell's location on your site. If you do not have bash, then you should be able to use the korn shell (ksh) instead.


Previous page: Image Converter  
Web Page Maker