Galadmin.pl


About:

Galadmin is a Gallery Administrator.
He can manage your galleries of photos from digital camera and much more. He can independently generate images, pages with thumbnails or complete index of all galleries. You can change comment or add one gallery and simply regenerate only index page. Generated HTML code is XHTML 1.0 and CSS valid. It's simple and fast for busy people.

Example:

demo gallery

Download:

galadmin.pl - V1.0.1
galadmin.pl - V1.0.2
galadmin.pl - V1.0.3
galadmin.pl - V1.0.5

Requirements:

- OS with PERL language. Tested on Linux Mandrake9.0 with perl v5.8.0.
- convert from package ImageMagick (only for image generating)
- exiftags (only for getting EXIF information from images)

Usage:

galadmin.pl <Arguments> <SourceDir>
When you run galadmin.pl without parameters, you will get HELP.
When you run "galadmin.pl ./", then program scan directory "./" for images and exit.

Arguments:

-d <dir>specify destination directory. When you don't specify this option, destination directory will be same as source directory.
-Ddelete additional directory (default source) with generated pages and images and index page.
-ggenerate top index of all galleries with tree structure of your directories (galleries). He gets gallery names from comment.txt of individual galleries (directories). He ignore directories with additional informations (source). It's useful use this argument with -r recursion.
-h print HELP
-i convert original images to thumbnails (default 128x96) and smaller images (default 800x600). It's useful use this argument with -p for simultaneous html page generating. Existing generated images are skipped.
-f force, take effect only with -i, all existing images will be overwiten.
-p make additional directory (source), html pages for images, index page and comment.txt example, when he doesn't exists. You can simply edit comment file with your favorite editor and add gallery name and comments for independent images. When you have comments done, you can regenerate html pages with -p option. When you haven't comments, then name of pictures are used. Existing generated pages are rewritten except comment.txt.
-r recursive. With -pi arguments you can generate pages and images for all your galleries in one command. With -g argument you can generate index of your complete gallery tree structure.

Configuration:

You can configure some parameters by changing of global variables in galadmin.pl program.
$IndexName - name of html index file. Default: index.html
$DirectoryName - name of directory, where maked pictures and html pages are saved. Default: source
$CommentFile - name of file, where photo comments are written. Default: comment.txt
$ThnWidth - thumbnail width. Default: 128 pixels.
$ThnHeight - thumbnail height. Default: 96 pixels.
$ImgWidth - small picture width. Default: 800 pixels.
$ImgHeight - small picture height. Default: 600 pixels.
Please backup your old galadmin.pl before changing file.

History changes:

- 1.0.0 2003-02-06 Initial public release
- 1.0.1 2003-02-07 fix of reported bugs
- 1.0.2 2003-02-19 added option -f and change meaning of option -i
- 1.0.3 2003-08-17 small code cleanup, XHTML1.0 Strict page generating, small design change
- 1.0.5 2004-11-02 imege rotation, CSS in separate file, design changes, gallery description

Authors:

- Milos Kapoun - programming, testing
- Pavel Ruzicka - idea, html code, testing

Thanks to:

- Samuel "Sam" Hocevar for genethumb.sh
- Authors of ImageMagick
- Eric Johnston for exiftags
...and many more people.