NAME
App::Followme::CreateGallery - Create a photo gallery page
SYNOPSIS
use App::Followme::CreateGallery;
my $gallery = App::Followme::CreateGallery->new($configuration);
$gallery->run($directory);
DESCRIPTION
This package builds an index for a directory which serves as a photo gallery. The variables described below are substituted into a template to produce the gallery.
CONFIGURATION
The following fields in the configuration file are used:
- template_file
-
The name of the template used to produce the photo gallery. The default is 'create_gallery.htm'.
- thumb_suffix
-
The suffix added to the photo name to produce the thumb photo name. The default is '-thumb'.
- thumb_width
-
The width of the thumb photos. Leave at 0 if the width is defined to be proportional to the height.
- thumb_height
-
The height of the thumb photos. Leave at 0 if the height is defined to be proportional to the width. If both thumb_width and thumb_height are 0, no thumb photo will be created.
- photo_width
-
The width of the photo after resizing. Leave at 0 if the width is defined to be proportional to the height.
- photo_height
-
The height of the photo after resizing. Leave at 0 if the height is defined to be proportional to the width. If both photo_width and photo_height are zero, the image will not be resized.
- data_pkg
-
The name of the package used to retrieve data from the photos. The default value is 'App::Followme::JpegData'.
LICENSE
Copyright (C) Bernie Simon.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Bernie Simon <bernie.simon@gmail.com>