#!/bin/bash # # This script scans the given JPEG files (whose names # must end in .jpg), generates a thumbnail and a reduced # version in JPEG of each, and generates an HTML page with all the # thumbnails and links to the reduced version and the original. # # If the image contains PhotoRDF (wrapped in Adobe's XMP), it is used # to generate a description. # # The HTML page with thumbnails is written to the first argument: # # thumbnails index.html *.jpg # # Options: # # -t title # Use title as the title of the thumbnails page (default: # "Thumbnails") # -l language # Add lang=language to the generated HTML pages and translate the # generated canned phrases to that language. Currently supported # languages: "en" (=English, default), "nl" (=Dutch) and "fr" # (=French) # -n name # The name to insert in the copyright message at the bottom # (default: "Bert Bos") # -c percent # Try to make thumbnails better by showing only the center of the # image. 100 means the whole image is used (default), 80 means the # image's four edges are cut off such that only 80% of its original # width and height remain # -p file # Insert the contents of file into the index file, before the # thumbnails. # -w number # Width or height (whichever is larger) of thumbnails, in pixels # (default: 100) # -s stylesheet # URI reference of an external style sheet. By default, the script # will insert a " else echo "" fi echo "" echo echo "
" echo "