File::Properties::Image - Perl module representing information specific to an image file
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";
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.
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.
my $fpi = File::Properties::Image->new($fpm, $fpc);
Constructs a new File::Properties::Image object.
print "Image digest: " . $fpi->idigest . "\n";
Determine the image pixel value digest for the represented file.
print $fpi->string . "\n";
Construct a string representing the object data.
File::Properties::Image::_cacheinit($fpc);
Initialise the image properties cache table in the cache referred to by the File::Properties::Cache reference argument.
File::Properties, File::Properties::Cache, File::Properties::Media, Image::Magick
Brendt Wohlberg <wohl@cpan.org>
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.
To install File::Properties, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Properties
CPAN shell
perl -MCPAN -e shell install File::Properties
For more information on module installation, please visit the detailed CPAN module installation guide.