2004.02.06 13:37 "RE: [Tiff] Problem with tiffcp (tiffsplit?) and multipage tiffs on Windows.", by Valkanas Nikolaos
Thanks for the fast response. I was using libtiff 3.5.7 on Solaris 8. I upgraded to libtiff 3.6.1. Same result.
However taking cue from your response that hinted of no similar problems that have been encountered in libtiff, I did some more checking. It turns out that netpbm's pnmdepth is the trouble maker. I used it as an intermediate step to achieve tiff color reduction to 4 colors. tiffsplit -> tifftopnm -> pnmdepth -> pnmtotiff -> tiffcp
Somehow it produces weird code (double error) that is viewable on multipaged tiffs (only the first page) but it is not viewable with single page tifs. I apologize for the noise I created. BTW do you know of any good opensource unix color reduction utility for tiffs (command line preferably)?
1A Neapoleos Street Maroussi, Greece.
Direct Phone: +(30) 210 8113 598
Fax: +(30) 210 8113 458
Subject: Re: [Tiff] Problem with tiffcp (tiffsplit?) and multipage tiffs on Windows.
On Thu, Feb 05, 2004 at 07:21:37PM +0200, Valkanas Nikolaos wrote: > My problem is that when I compose a multipaged tiff using tiffcp and I
> try to view it through the standard Windows Picture and fax viewer, as
> well as most other Windows freeware (IrfanView etc.) they will report > that the image is corrupt. Only the Office XP Document viewer will
> display it correctly. Unfortunately we cannot use the Document Viewer.
The question is: what libtiff version do you using? did you tried the latest 3.6.1 one?
> Meanwhile when I try tiffsplit from the windows original tiffs I get:
> Warning, incorrect count for field "PageNumber" (1, expecting 2); tag > ignored.
PageNumber tag holds array of size 2, where the first element contains a page number and the second one contains total number of pages in the document. It seems that you have badly written files on input.