The goal of this project is to create a simple html based photo album and slide show that can be viewed with any browser on any platform.
v0.3.7 (latest and greatest!)
v0.2.1 (older version with only a single index page)
sample file (optional). This can go in your home dir and/or the directory containing your images. The local values take priority over the values from ~/.albumrc if there is a conflict.
Put your copy of album.pl somewhere appropriate:
Make sure the path to perl on the first line is correct for your system.
You will need the ImageMagick
utility. This is standard on many modern Linux distros.
You will also need these two perl modules. They also may already be installed on system. If not, try:
# perl -MCPAN -e shell cpan> install Image::Size cpan> install Getopt::Std cpan> quit
cd into the directory with your .jpg files.
Give it the
flag to create different scaled images. (without -g will only create thumbnails and html) Be sure to list your resolutions in ascending order.
By default, if you run the album.pl again, it will not regenerate the scaled images if they exist. Give the -f option to force recreation.
The original files are included in the indexing. If you want to exclude them, add the -e option. This will leave them out of the html but won't delete the originals. That part is up to you.
v0.3.7 Changed the default operation if -g flag is missing. Updated the console text output when checking for .albumrc.
v0.3.6 Added .albumrc file support, IMG width/height specification, and the -e option.
v0.3.5 Added preloading of the next image and fixed a small html bug.
It doesn't deal with files with spaces in the name, but you know better
UI: album.pl will happily scale images BIGGER than the original, however the resolution order on the index.html page will not be smallest to largest.
philip at shuman dot org