Man Linux: Main Page and Category List


       lazygal - static web gallery generator


       lazygal [-h | -v | [options] albumdir]


       This manual page explains the lazygal program. This program is a static
       web gallery generator written in Python.

       lazygal works so: you should have an original store of files - possibly
       containg subdirectories (their names serving as headings if not using
       the album metadata feature). This is the source file hierarchy. It will
       never be modified by lazygal. Then, when launching:

       $ lazygal -o /var/www/MyAlbum /home/user/SourceDir

       lazygal will analyze the contents of the source hierarchy and will
       (re)create the target hierarchy, but with all the bells and whistles
       defined by the templates. Only missing parts or parts that are not up
       to date will be generated.


       These programs follow the usual GNU command line syntax, with long
       options starting with two dashes (‘-'). A summary of options is
       included below. For a complete description, see the -h switch.

       -v --version
           Show program's version number and exit.

       -h --help
           Show summary of options.

           Don't output anything except for errors.

           Output everything that lazygal is doing.

       -o DEST_DIR --output-directory=DEST_DIR
           Directory where web pages, slides and thumbs will be written
           (default is current directory).

       -t THEME --theme=THEME
           Theme name (looked up in theme directory) or theme full path.

           Default style to apply to the theme.

           Common variables to load all templates with.

           Clean destination directory of files that should not be there.

           Exhaustively go through all directories regardless of source
           modification time.

       -s IMAGE_SIZE --image-size=IMAGE_SIZE
           Size of images, define as name=xxy, ..., eg.
           small=800x600,medium=1024x768. The special dimensions 0x0 use
           original size. Refer to the IMAGE RESIZE DESCRIPTION section for
           more information on the available syntax.

       -T THUMBNAIL_SIZE --thumbnail-size=THUMBNAIL_SIZE
           Size of thumbnails, eg. 150x113. Refer to the IMAGE RESIZE
           DESCRIPTION section for more information on the available syntax.

       -q QUALITY --quality=QUALITY
           Quality of generated JPEG images (default is 85).

       -O --original
           Include original photos in output.

           Do not copy original photos in output directory, instead link them
           using RELATIVE_PATH as base for those links (discarded without -O).

           Run an extra optimization pass for each generated thumbnail.

           Generate progressive JPEG images.

           Publication URL (only useful for feed generation).

       -m --generate-metadata
           Generate metadata description files where they don't exist in the
           source tree instead of generating the web gallery. This disables
           all other options.

       -n THUMBS_PER_PAGE --thumbs-per-page=THUMBS_PER_PAGE
           Maximum number of thumbs per index page. This enables index
           pagination (0 is unlimited).

           Sort order for images in a subgallery, among 'mtime', 'filename',
           or 'exif'. (default is 'exif' which is by EXIF date if EXIF data is
           available, filename otherwise, sorting EXIF-less images before).
           Add ':reverse' to reverse the sort order (e.g.

           Sort order for subgalleries, among 'mtime' or 'filename' (default
           is 'filename'). Add ':reverse' to reverse the sort order (e.g.

           Level below witch the directory tree is flattened. Default is no
           flattening ('No').

       -z --make-dir-zip
           Make a zip archive of original pictures for each directory.

           Webalbum picture background color. Default is transparent, and
           implies the PNG format. Any other value, e.g. red, white, blue,
           uses JPEG.


       A theme maps to a directory that contains at least the following items:

           The XHTML template for the theme browse page (displaying one

           The XHTML template for the directory index page (pictures and
           sub-galleries links).

       This must be valid XML. See for
       syntax. Dependencies for statically included templates (i.e. with
       filenames not computed from variables) are automatically computed: when
       an included template is modified, the software will automatically
       figure out which pages to re-generate.

       Each file which name starts with SHARED_ is copied to the web album
       destination under the directory shared and is aimed at being a shared
       resource accross your web album (CSS stylesheet, button, etc.).

       Each file which extension starts with t is processed through the Genshi
       text template engine before being copied. See for

       Please refer to the examples supplied in /usr/share/lazygal/themes


       If a directory from the source album contains a file named
       album_description, it is processed as a source of album metadata. See
       /usr/share/doc/lazygal/README for more information.


           User configuration directory.

           User configuration file. INI like file format.

           Gallery configuration file. INI like file format. Overloads the
           user configuration file, is overloaded by command line options.

           User themes directory.


       The size string follows the same syntax as ImageMagick's.

           Height and width both scaled by specified percentage.

           Height and width individually scaled by specified percentages.

           Width given, height automatically selected to preserve aspect

           Height given, width automatically selected to preserve aspect

           Maximum values of height and width given, aspect ratio preserved.

           Minimum values of width and height given, aspect ratio preserved.

           Width and height emphatically given, original aspect ratio ignored.

           Change as per the supplied dimensions but only if an image
           dimension exceeds a specified dimension.

           Change dimensions only if both image dimensions exceed specified

           Resize image to have specified area in pixels. Aspect ratio is


       The full documentation of lazygal is maintained as a README file.

       More information is available on the program website:


       This manual page was written for the Debian system (but may be used by
       others). Permission is granted to copy, distribute and/or modify this
       document under the terms of the GNU General Public License, Version 2
       any later version published by the Free Software Foundation.

       On Debian systems, the complete text of the GNU General Public License
       can be found in /usr/share/common-licenses/GPL.


       Copyright © 2010

[FIXME: source]                    June 2010