#876965 tiff: jpeglib backing store not supported

#876965#5
Date:
2017-09-27 07:58:19 UTC
From:
To:
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,