- 2011.02.05 23:03 "Re: [Tiff] Converting single-page TIFFs to multi-page TIFF or PDF", by Bob Friesenhahn
- 2011.02.07 12:22 "Re: [Tiff] Converting single-page TIFFs to multi-page TIFF or PDF", by John Brown
- 2011.02.07 13:47 "Re: [Tiff] Converting single-page TIFFs to multi-page TIFF or PDF", by John Brown
2011.02.06 01:50 "Re: [Tiff] Converting single-page TIFFs to multi-page TIFF or PDF", by John Brown
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:
You forgot to tell us what version of libtiff you are using. Of course it does make a difference.
Indeed. Sorry about that. I am using the latest stable version 3.9.4 compiled against jpeg-8b with MinGW/MSYS on Windows Vista.
The JPEG in question is displayed as a blob by Windows Image Preview but I can view it with XnView (www.xnview.com).
$ tiffinfo -c -j -s test-original.tif TIFFReadDirectory: Warning, test-original.tif: wrong data type 4 for "JpegProc"; tag ignored.
TIFFReadDirectory: Warning, Photometric tag value assumed incorrect, assuming da ta is YCbCr instead of RGB.
OJPEGSubsamplingCorrect: Warning, Subsampling tag is not set, yet subsampling in side JPEG data [1,1] does not match default values [2,2]; assuming subsampling i nside JPEG data is correct.
TIFF Directory at offset 0x8 (8)
Subfile Type: (0 = 0x0)
Image Width: 716 Image Length: 480
Resolution: 400, 400 pixels/inch
Bits/Sample: 8
Compression Scheme: Old-style JPEG
Photometric Interpretation: YCbCr
YCbCr Subsampling: 1, 1
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 3
Rows/Strip: 480
Planar Configuration: single image plane
Software: Pixel Translations Inc., PIXTIFF Version 54.1.207
JpegInterchangeFormat: 520
JpegInterchangeFormatLength: 408
JpegQTables: 634 699 699
JpegDcTables: 768 848 848
JpegAcTables: 793 872 872
1 Strips:
0: [ 928, 29221]
Regards,
Alias John Brown.