1PNG(3)                User Contributed Perl Documentation               PNG(3)
2
3
4

NAME

6       Imager::File::PNG - read and write PNG files
7

SYNOPSIS

9         use Imager;
10
11         my $img = Imager->new;
12         $img->read(file=>"foo.png")
13           or die $img->errstr;
14
15         $img->write(file => "foo.png")
16           or die $img->errstr;
17

DESCRIPTION

19       Imager's PNG support is documented in Imager::Files.
20

METHODS

22       Two low level class methods are provided, most for use by
23       Imager::File::APNG, but it may later be used for other formats that can
24       encapsulate PNG such as ICO.
25
26       "Imager::File::PNG->read($im, $io, %hsh)"
27           Read a PNG image from the supplied Imager::IO object $io into the
28           Imager object $im.
29
30           Returns a true value on success.
31
32       "Imager::File::PNG->write($im, $io, %hsh)"
33           Write a PNG image to the supplied Imager::IO object $io from the
34           Imager object $im.
35
36           Returns a true value on success.
37

AUTHOR

39       Tony Cook <tonyc@cpan.org>
40

SEE ALSO

42       Imager, Imager::Files.
43
44
45
46perl v5.36.0                      2023-01-20                            PNG(3)
Impressum