2011.02.05 19:49 "[Tiff] Converting single-page TIFFs to multi-page TIFF or PDF", by John Brown

2011.02.05 19:49 "[Tiff] Converting single-page TIFFs to multi-page TIFF or PDF", by John Brown

Hello All,

My plan was simply to build a list of pages that belong to one document and then:

$tiffcp page1.tif page2.tif... pageN.tif doc.tif $tiff2pdf -o doc.pdf doc.tif

If any of the TIFFs is an OJPEG TIFF, the first command fails with a long message including: "OJPEGSetupEncode: OJPEG encoding not supported; use new-style JPEG compression instead."

The uncompressed TIFF (via tiffcp -c none) can be converted to PDF by tiff2pdf without any warnings or errors. However, tiffcp cannot compress the uncompressed TIFF that it created:

$ tiffcp -c jpeg:75 test-uncompressed.tif test-jpg.tif

JPEGSetupEncode: RowsPerStrip must be multiple of 8 for JPEG. test-jpg.tif: Error, can't write strip 0.

  1. Why does tiff2pdf succeed but tiffcp fail? Is it a bug?
  2. My specific need right now is to produce PDF files, so I

   am OK, other than the need to run tiffinfo to find out if    the image uses OJPEG compression. However, if I needed to    produce multi-page TIFF instead of PDF, what would be my

   options (besides using Ghostscript to convert the PDF    back to TIFF)?

Regards,

Alias John Brown.