1Image::Info::PPM(3) User Contributed Perl Documentation Image::Info::PPM(3)
2
3
4
6 Image::Info::PPM - PPM support Image::Info
7
9 use Image::Info qw(image_info dim);
10
11 my $info = image_info("image.ppm");
12 if (my $error = $info->{error}) {
13 die "Can't parse image info: $error\n";
14 }
15 my($w, $h) = dim($info);
16
18 This modules adds ppm support to Image::Info.
19
20 It is loaded and used automatically.
21
23 process_file()
24 $info->process_file($source, $options);
25
26 Processes one file and sets the found info fields in the $info object.
27
29 Gisle Aas.
30
32 This library is free software; you can redistribute it and/or modify it
33 under the same terms as Perl itself.
34
35
36
37perl v5.32.0 2020-07-28 Image::Info::PPM(3)