Source: tiff
Severity: normal

When using tiff2pdf with JPEG compression (for instance "tiff2pdf -q 10
-j foo.tiff foo.pdf"), the following error is raised:

  JPEGLib: Backing store not supported.
  tiff2pdf: Error writing encoded strip to output PDF test.pdf.                 
           
  tiff2pdf: An error occurred creating output PDF file.                         
                                     

This apparently happens because starting with libjpeg-turbo 1.5.2, the
hard memory limit of that libtiff is setting is now honored, whereas it
was ignored before. As a result, tiff2pdf can't create PDF files because
there isn't enough memory.

The above analysis was shamelessly lifted from the corresponding Arch
bug report[0], which also point to upstream issues[1][2].

One solution is apparently to raise TIFF_JPEG_MAX_MEMORY_TO_USE, which
in Debian is defined as:

  #define TIFF_JPEG_MAX_MEMORY_TO_USE (10 * 1024 * 1024)

Cheers,

--Seb

[0] https://bugs.archlinux.org/task/54989
[1]: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/162
[2]: https://github.com/vadz/libtiff/blob/master/libtiff/tif_jpeg.c#L2434-L2443

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.13.0-rc7-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Reply via email to