Your message dated Tue, 22 Aug 2023 13:57:30 +0200
with message-id <ZOSiqgkfv/[email protected]>
and subject line Re: Bug#850680: netpbm: anytopnm fails on JPEGs with Exif data
has caused the Debian Bug report #850680,
regarding netpbm: anytopnm fails on JPEGs with Exif data
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.)


-- 
850680: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850680
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: netpbm
Version: 2:10.0-15.2
Severity: normal

When I run anytopnm on a JPEG image with Exif data, it fails with:

> /tmp/anytopnm.wWyz74jE6o/atn.stdin: Not a TIFF or MDI file, bad magic number 
> 55551 (0xd8ff).
> tifftopnm: error opening TIFF file /tmp/anytopnm.wWyz74jE6o/atn.stdin

The cause is that anytopnm runs "file" first to determine the type of the
image, which results in:

> JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=7,
> orientation=upper-left, xresolution=98, yresolution=106, resolutionunit=2,
> software=Adobe Photoshop CS5 Windows, datetime=2011:08:06 22:42:46], baseline,
> precision 8, 900x656, frames 3

Then it uses a huge "case" to match known patterns on this string, which
catches "TIFF" before "JPEG". So it runs tifftopnm, which gives up. Running
jpegtopnm instead would work.

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.39-kam (SMP w/16 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages netpbm depends on:
ii  libc6            2.19-18+deb8u6
ii  libjpeg62-turbo  1:1.3.1-12
ii  libnetpbm10      2:10.0-15.2
ii  libpng12-0       1.2.50-2+deb8u2
ii  libtiff5         4.0.3-12.3+deb8u1
ii  zlib1g           1:1.2.8.dfsg-2+b1

Versions of packages netpbm recommends:
ii  ghostscript  9.06~dfsg-2+deb8u4

netpbm suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 2:11.01.00-2

On 2017-01-09 Martin Mares <[email protected]> wrote:
> Package: netpbm
> Version: 2:10.0-15.2
> Severity: normal

> When I run anytopnm on a JPEG image with Exif data, it fails with:

> > /tmp/anytopnm.wWyz74jE6o/atn.stdin: Not a TIFF or MDI file, bad magic 
> > number 55551 (0xd8ff).
> > tifftopnm: error opening TIFF file /tmp/anytopnm.wWyz74jE6o/atn.stdin

> The cause is that anytopnm runs "file" first to determine the type of the
> image, which results in:

> > JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=7,
> > orientation=upper-left, xresolution=98, yresolution=106, resolutionunit=2,
> > software=Adobe Photoshop CS5 Windows, datetime=2011:08:06 22:42:46], 
> > baseline,
> > precision 8, 900x656, frames 3

> Then it uses a huge "case" to match known patterns on this string, which
> catches "TIFF" before "JPEG". So it runs tifftopnm, which gives up. Running
> jpegtopnm instead would work.

Hello,

I just tried to reproduce with new upstream and it seems to work now.

cu Andreas

--- End Message ---

Reply via email to