logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Image::Info::PPM - PPM support Image::Info

Author

       Gisle Aas.

Description

       This modules adds ppm support to Image::Info.

       It is loaded and used automatically.

License

       This library is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself.

perl v5.40.0                                       2024-12-07                              Image::Info::PPM(3pm)

Methods

process_file()
               $info->process_file($source, $options);

       Processes one file and sets the found info fields in the $info object.

Name

       Image::Info::PPM - PPM support Image::Info

Synopsis

        use Image::Info qw(image_info dim);

        my $info = image_info("image.ppm");
        if (my $error = $info->{error}) {
            die "Can't parse image info: $error\n";
        }
        my($w, $h) = dim($info);

See Also