NAME
snig.pl - Generate a html image gallery from a directory of images
VERSION
version 1.001
SYNOPSIS
snig.pl --name "Holiday 2025" --output /document_root/2025_summer --input path/to/dir/with/images
DESCRIPTION
This will generate a simple, static HTML image gallery from all jpgs found in path/to/dir/with/images
in the directory /document_root/2025_summer
.
Each image will be copied and the filename prefixed with orig_
. There will be a thumbnail (200px) and a preview image (1000px). Each image will get a small HTML page, linking to the next and previous image using the preview image. And there will be an index showing all images as thumbnails. All original images will be packed into a ZIP archive and linked for download.
COMMAND LINE OPTIONS
--input
The input directory containing the source images
--output
The directory name of the image gallery to create
<--name>
A human readable name of the gallery, used in the HTML output
--sort_by
Default: created
Options: created
, mtime
Sort the images by EXIF creation time (default) or file mtime.
--force
Options: resize
, zip
Resize images even if we already did that. And/or recreate zip file, even if it already exists
--th_size
Default: 200
Width of thumbnails in pixel
--preview_size
Default: 1000
Width of preview images in pixel
ENV
Currently logging can be turned on/off via an env var LOGLEVEL
, values are Log::Any log levels. The Log::Any logger defaults to STDERR
and can be changed via env var LOGADAPTER
.
AUTHOR
Thomas Klausner <domm@plix.at>
COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by Thomas Klausner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.