Return-Path: <tiff-admin@remotesensing.org>
Received: from zed.skynet.be (zed.skynet.be [195.238.3.233])
        by six.skynet.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i16DevI9010832
        for <joris.at.lebbeke@skynet.be>; Fri, 6 Feb 2004 14:40:57 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.42])
        by zed.skynet.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i16DehaW019613
        for <joris.at.lebbeke@skynet.be>; Fri, 6 Feb 2004 14:40:43 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id i16Dd6l05834;
	Fri, 6 Feb 2004 08:39:07 -0500
Received: from fesscrpp2.tellas.gr (fesscrpp2.tellas.gr [62.169.194.3])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id i16Dbnl05776
	for <tiff@remotesensing.org>; Fri, 6 Feb 2004 08:37:49 -0500
Received: from XCHVSRV02.evergy.local (10.1.61.13) by fesscrpp2.tellas.gr (6.7.010)
        id 3FE21007001848C3 for tiff@remotesensing.org; Fri, 6 Feb 2004 15:37:43 +0200
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Subject: RE: [Tiff] Problem with tiffcp (tiffsplit?) and multipage tiffs on Windows.
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Message-ID: <8053CDE98E2C5F41999C8C4597A600ED55DE43@xchvsrv02.evergy.local>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] Problem with tiffcp (tiffsplit?) and multipage tiffs on Windows.
Thread-Index: AcPsEgJJrEjU7O9LSoG9WWbg+3h/kwAga5Qw
From: "Valkanas Nikolaos" <nikolaos.valkanas@mail.tellas.gr>
To: <tiff@remotesensing.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by yoda.imagelinks.com id i16Dbnl05776
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Fri, 6 Feb 2004 15:37:42 +0200
X-UIDL: fa9e4d6e3dfab9555968f3018841edfd

Dear Andrey,

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)?

Thanks,

Nikos Balkanas
System Architect,
Tellas S.A.,
1A Neapoleos Street Maroussi, Greece.

Direct Phone: +(30) 210 8113 598 
Fax: +(30) 210 8113 458 
e-mail: nikolaos.valkanas@mail.tellas.gr 



-----Original Message-----
From: Andrey Kiselev [mailto:dron@ak4719.spb.edu] 
Sent: Thursday, February 05, 2004 7:59 PM
To: tiff@remotesensing.org
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.

					Regards,
					Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org http://remotesensing.org/mailman/listinfo/tiff
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
