NAME
App::Followme::JpegData - Read datafrom a jpeg file
SYNOPSIS
use App::Followme::JpegData;
my $data = App::Followme::JpegData->new();
my $html = App::Followme::Template->new('example.htm', $data);
DESCRIPTION
This module extratcs metadata from a jpeg image and uses that metadata to build variables used in a template.
METHODS
All data classes are first instantiated by calling new and the object created is passed to a template object. It calls the build method with an argument name to retrieve that data item, though for the sake of efficiency, all the data are read from the file at once.
VARIABLES
- @thumb_file
-
The name of the thumb file for a photo. Even though this is a single file, it is returned as a hash and thus must be used in a for statement.
- $height
-
The height of the photo
- $width
-
The width of the photo
CONFIGURATION
The following fields in the configuration file are used in this class and every class based on it:
- extension
-
The extension used by jpeg files.
- thumb_suffix
-
The suffix added to the root of the photo filename to build the thumb photo filename. The default value is '-thumb'.
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>