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