[Bug 1623639] [NEW] netpbm: "anytopnm" doesn't recognize some file types

Peter Selinger 1623639 at bugs.launchpad.net
Wed Sep 14 19:45:28 UTC 2016


Public bug reported:

/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.

** Affects: netpbm-free (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netpbm-free in Ubuntu.
https://bugs.launchpad.net/bugs/1623639

Title:
  netpbm: "anytopnm" doesn't recognize some file types

Status in netpbm-free package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netpbm-free/+bug/1623639/+subscriptions



More information about the foundations-bugs mailing list