netpbm: "anytopnm" doesn't recognize some file types
Bug #1623639 reported by
Peter Selinger
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netpbm-free (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
/usr/bin/anytopnm uses the output of "file" to recognize the image format of the input file.
Apparently the output of "file" has changed, and therefore it is no longer correctly recognized by anytopnm. Example:
$ file /tmp/x.ppm
/tmp/x.ppm: Netpbm image data, size = 5100 x 6600, rawbits, pixmap
However, /usr/bin/anytopnm (line 64) looks for the strings *PBM* | *PGM* | *PPM* )
For example:
$ cat /tmp/x.ppm | anytopnm
/usr/bin/anytopnm: unknown file type: Netpbm image data, size = 5100 x 6600, rawbits, pixmap
Suggested fix: update /usr/bin/anytopnm to recognize the string "Netpbm" in addition to PBM, PGM, PPM.
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.