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 supplied Imager::IO object $io into the Imager object $im. Returns a true value on success. βœ…
  • Imager::File::PNG->write($im, $io, %hsh) β€” writes a PNG image to the supplied Imager::IO object $io from the Imager object $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