fotogal
a shell script for quickly generating html galleries(c) pesco 2010, isc license
basic operation
- enter a directory containing .jpeg or .jpg files.
- call fotogal.
- wait. note automatic orientation adjustment according to exif data.
- notice scaled images in _scale/.
- notice thumbnails in _thumb/.
- observe index.html. thumbnails are linked to scaled images.
options
the following environment variables are recognized:- ssize: desired major dimension of scaled images in pixels. default: 1024.
- tsize: desired edge length of thumbnails in pixels. default: 150.
- css: urls of external css stylesheets to include, separated by whitespace. default: none.
- js: urls of external javascript files to include, separated by whitespace. default: pixls.js (see below).
- rel: desired value of the rel attribute on image links. default: pic.
- -r: do not regenerate existing files in _thumb or _scale.
pixls.js
a tinylightboxwork-alike in pure javascript. it displays the images in a floating <div> atop the page with navigation buttons and metadata. fotogal generates suitable html, namely rel and title attributes on image links. it will include pixls.js by default; just place the file next to the generated index.html. use the js option (see above) to change the location or set js="" to disable.
example
have a look: http://www.khjk.org/prj/fotogal/example/download
darcs get http://code.khjk.org/fotogaldependencies
- imagemagick http://www.imagemagick.org/
- ijg jpeg tools, specifically exifautotran http://www.ijg.org/