Imager::File::TIFF - read and write TIFF files
use Imager; my $img = Imager->new; $img->read(file=>"foo.tiff") or die $img->errstr; $img->write(file => "foo.tif") or die $img->errstr; my @codecs = Imager::File::TIFF->codecs;
Imager's TIFF support is documented in Imager::Files.
Returns a list of hashrefs, each hash contains:
code - the numeric TIFF defined identifier for this compression codec.
code
name - the short name traditionally used by Imager::File::TIFF for this compression codec. This may be an empty string if Imager::File::TIFF doesn't have a name for this codec.
name
description - the libtiff defined name for this codec. You can now supply this name in the tiff_compression tag to select this compression.
description
libtiff
tiff_compression
The release date of the version of libtiff Imager::File::TIFF was built with. eg. 20230609.
20230609
The version number of libtiff Imager::File::TIFF was built with. eg. 4.5.0. Only available from libtiff 4.5.0.
4.5.0
The version number of libtiff Imager::File::TIFF is running with. This should be the same as buildversion at build time, but an upgrade to libtiff may result in libversion changing without buildversion changing.
buildversion
libversion
Tony Cook <tonyc@cpan.org>
Imager, Imager::Files.
http://www.simplesystems.org/libtiff/
To install Imager::File::TIFF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager::File::TIFF
CPAN shell
perl -MCPAN -e shell install Imager::File::TIFF
For more information on module installation, please visit the detailed CPAN module installation guide.