2006 / pnm - PERLI.NET photo maintenance tools

pnm - PERLI.NET photo maintenance tools

pnm is a set of scripts (bash, Python and Perl) that makes the life of a website maintainer easier by automating the process of converting, renaming and packaging photos for the web.

Due to special events (daylight savings time, multiple-camera photography) pnm provides additional tools for fixing these errors. A special mode is provided for faking dates (given event start and end dates) in case the EXIF information for photos is missing (assuming a uniform distribution of photos throughout the whole evening).

Installation

You can run pnm directly from a source checkout. A Debian package is also available for easier deployment on a variety of machines:

If you are using Homebrew on Mac OS X, you can use this Formula: pnm.rb (copy to /usr/local/Library/Formula/, then brew install pnm).

Caveats when using Homebrew: You might need to add the exiftool library path to the PERLLIB environment variable in order for Perl to find the required libraries. You can do so using:

export PERLLIB=/usr/local/Cellar/exiftool/8.32/libexec/lib/

Basic usage

  1. Download photos from digital camera: pnm fetch
  2. Pick an album name (or autogenerate using pnm sequence, e.g. pnm sequence aktivpark)
  3. Do the photo selection (e.g. using gqview-perlinet)
  4. Upload the photo album to the server: pnmng

Subversion repository

pnm's codebase is now managed over at Gna!. You can access the current codebase by using Subversion:

  • svn co http://svn.gna.org/svn/pnm/trunk pnm (public)
  • svn co svn+ssh://svn.gna.org/svn/pnm/trunk pnm (developers)

thp; contact info