Imager::File::PNG3pm
Read and write png files
Usage
use Imager;my $img = Imager->new;$img->read(file=>"foo.png")or die $img->errstr;$img->write(file => "foo.png")or die $img->errstr;
Overview
Imager's PNG support is documented in Imager::Files.
Methods
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
$iointo the Imager object$im.Returns a true value on success.
- "Imager::File::PNG->write($im, $io, %hsh)"
-
Write a PNG image to the supplied Imager::IO object
$iofrom the Imager object$im.Returns a true value on success.
Releases
7 releases since Debian 7 (Wheezy); the text changed 6 times.