Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read basic PBM file #1

Open
pjacklam opened this issue Apr 8, 2021 · 0 comments
Open

Unable to read basic PBM file #1

pjacklam opened this issue Apr 8, 2021 · 0 comments

Comments

@pjacklam
Copy link

pjacklam commented Apr 8, 2021

I am trying to read the sample PBM file provided in the pbm(5) manual page. Here is the image data:

P1
# feep.pbm
24 7
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0
0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Trying to read this image gives me the following error:

$ perl -MImage::PNM -we 'my $image = Image::PNM -> new(shift)' -- feep.pbm
Invalid color:   at /usr/local/share/perl5/site_perl/5.32/Image/PNM.pm line 466, <$fh> line 4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant