PNG(3pm)
πΈ NAME πΈ
okay bestie, this is PNG(3pm) from the User Contributed Perl Documentation, and itβs literally about Imager::File::PNG β read and write PNG files. π
β¨ SYNOPSIS β¨
the whole vibe, fr fr:
use Imager;
my $img = Imager->new;
$img->read(file=>"foo.png")
or die $img->errstr;
$img->write(file => "foo.png")
or die $img->errstr;
π¦ DESCRIPTION π¦
all the actual tea on Imagerβs PNG support lives in Imager::Files β thatβs the place to look, no cap. π«Ά
π METHODS π
Two low level class methods are provided β mostly for Imager::File::APNG to use, but maybe later for other formats that can encapsulate PNG, like ICO. iconic behavior, honestly. π
Imager::File::PNG->read($im, $io, %hsh)β reads a PNG image from the suppliedImager::IOobject$iointo theImagerobject$im. Returns a true value on success. βImager::File::PNG->write($im, $io, %hsh)β writes a PNG image to the suppliedImager::IOobject$iofrom theImagerobject$im. Returns a true value on success. β
π AUTHOR π
the icon behind this page is Tony Cook <tonyc@cpan.org> β give him his flowers. πβ¨
π SEE ALSO π
go peek at Imager and Imager::Files β theyβre the main characters here. π«Άπ
mwah π β this cutie is perl v5.42.3, dated 2026-08-19, and the manual is PNG(3pm). π
π¦ where this page comes from
- ubuntu stonking: libimager-perl 1.035+dfsg-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms