Imager::File::PNG - read and write PNG files
use Imager; my $img = Imager->new; $img->read(file=>"foo.png") or die $img->errstr; $img->write(file => "foo.png") or die $img->errstr;
Imager's PNG support is documented in Imager::Files.
Two low level class methods are provided, most for use by Imager::File::APNG, but it may later be used for other formats that can encapsulate PNG such as ICO.
Imager::File::PNG->read($im, $io, %hsh)
Read a PNG image from the supplied Imager::IO object $io into the Imager object $im.
$io
$im
Returns a true value on success.
Imager::File::PNG->write($im, $io, %hsh)
Write a PNG image to the supplied Imager::IO object $io from the Imager object $im.
Tony Cook <tonyc@cpan.org>
Imager, Imager::Files.
To install Imager::File::PNG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager::File::PNG
CPAN shell
perl -MCPAN -e shell install Imager::File::PNG
For more information on module installation, please visit the detailed CPAN module installation guide.