logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Imager::File::TIFF - read and write TIFF files

Author

       Tony Cook <tonyc@cpan.org>

Class Methods

       Imager::File::TIFF->codecs
           Returns a list of hashrefs, each hash contains:

           •   "code" - the numeric TIFF defined identifier for this compression codec.

           •   "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.

           •   "description" - the "libtiff" defined name for this codec.  You can now supply this name  in  the
               "tiff_compression" tag to select this compression.

       Imager::File::TIFF->builddate
           The release date of the version of "libtiff" Imager::File::TIFF was built with.  eg. 20230609.

       Imager::File::TIFF->buildversion
           The  version  number of "libtiff" Imager::File::TIFF was built with.  eg. 4.5.0.  Only available from
           "libtiff" 4.5.0.

       Imager::File::TIFF->libversion
           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.

Description

       Imager's TIFF support is documented in Imager::Files.

Name

       Imager::File::TIFF - read and write TIFF files

See Also

       Imager, Imager::Files.

       http://www.simplesystems.org/libtiff/

perl v5.40.1                                       2025-03-16                                          TIFF(3pm)

Synopsis

         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;

See Also