NAME

File::Properties::Image - Perl module representing information specific to an image file

SYNOPSIS

use File::Properties::Cache;
use File::Properties::Image;

my $fpc = File::Properties::Media->cache('cache.db');
File::Properties::Image::_cacheinit($fpc);

my $fpm = File::Properties::Media->new('image.jpg', $fpc);

my $fpi = File::Properties::Image->new($fpm, $fpc);
print "Image digest: " . $fpi->idigest . "\n";

ABSTRACT

File::Properties::Image is a Perl module representing information
specific to an image file (currently just a digest computed on the
image pixel values). If a reference to a File::Properties::Cache
object is specified in the constructor, access to the properties is
via the cache.

DESCRIPTION

File::Properties::Image is a Perl module representing information
specific to an image file (currently just a digest computed on the
image pixel values). The digest for RAW files is computed on the raw
data so that the digest does not depend on the demosaicing
algorithm.
new
my $fpi = File::Properties::Image->new($fpm, $fpc);

Constructs a new File::Properties::Image object.

idigest
print "Image digest: " . $fpi->idigest . "\n";

Determine the image pixel value digest for the represented file.

string
print $fpi->string . "\n";

Construct a string representing the object data.

_cacheinit
File::Properties::Image::_cacheinit($fpc);

Initialise the image properties cache table in the cache referred to by the File::Properties::Cache reference argument.

SEE ALSO

File::Properties, File::Properties::Cache, File::Properties::Media, Image::Magick

AUTHOR

Brendt Wohlberg <wohl@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2010,2011 by Brendt Wohlberg

This library is available under the terms of the GNU General Public License (GPL), described in the LICENSE file included in this distribution.