Your message dated Sun, 14 Jan 2024 13:55:19 +0100
with message-id <[email protected]>
and subject line Re: Bug#1001123: anytopnm cannot identify Netpbm image from
stdin
has caused the Debian Bug report #1001123,
regarding anytopnm cannot identify Netpbm image from stdin
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1001123: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001123
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: netpbm
Version: 2:10.0-15.4
anytopnm(1) uses file(1) to identify image data from stdin.
Some (recent?) versions of file output a different string than
before, for Netpbm images. For example:
$ file /tmp/z
/tmp/z: Netpbm image data, size = 28 x 40, rawbits, pixmap
$ /usr/bin/anytopnm /tmp/z
/usr/bin/anytopnm: unknown file type: Netpbm image data, size = 28 x 40,
rawbits, pixmap
Unfortunately, the huge ‘case’ statement in anytopnm doesn't
have "Netpbm" in it (how ironic!). Please find attached here a
small patch that fixes the problem for me:
--- /usr/bin/anytopnm 2021-02-07 13:32:35.000000000 -0500
+++ /home/ttn/bin/anytopnm 2021-12-04 14:41:12.266352672 -0500
@@ -61,7 +61,7 @@
case "$filetype" in
- *PBM* | *PGM* | *PPM* )
+ *Netpbm* | *PBM* | *PGM* | *PPM* )
cat "$file"
;;
I hope this can appear in the next release of netpbm!
--
Thien-Thi Nguyen
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Version: 2:10.97.00-1
On 2021-12-04 Thien-Thi Nguyen <[email protected]> wrote:
> Package: netpbm
> Version: 2:10.0-15.4
> anytopnm(1) uses file(1) to identify image data from stdin.
> Some (recent?) versions of file output a different string than
> before, for Netpbm images. For example:
[...]
> - *PBM* | *PGM* | *PPM* )
> + *Netpbm* | *PBM* | *PGM* | *PPM* )
Netpbm upstream uses file --mime-type since 10.73.00 which has stable
output.
ametzler@argenau:~/GIT/writing/netpbm-free$ anytopnm /tmp/maze > /dev/null ;
echo $?
0
cu Andreas
--- End Message ---