Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1R6Pe1C013903
	for <dron@localhost>; Wed, 27 Feb 2002 09:25:42 +0300
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.9.0)
	for dron@localhost (single-drop); Wed, 27 Feb 2002 09:25:42 +0300 (MSK)
Received: from gate7.olympiakos.com ([64.32.199.150]) by shared1-mail.whowhere.com; Tue Feb 26 19:04:46 2002
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id VAA06903;
	Tue, 26 Feb 2002 21:55:25 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Tue, 26 Feb 2002 21:53:41 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id VAA06887
	for tiff-outgoing; Tue, 26 Feb 2002 21:53:40 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from fax.tgivan.com ([202.144.239.157])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id VAA06884
	for <tiff@olympiakos.com>; Tue, 26 Feb 2002 21:53:39 -0500
Received: from aukland.yp.tgx ([192.9.200.62] helo=aukland.tgivan.com)
	by fax.tgivan.com with smtp (Exim 3.20 #1)
	id 16fuDq-0005FF-00
	for tiff@olympiakos.com; Tue, 26 Feb 2002 18:53:38 -0800
Received: from lima by aukland.tgivan.com (SMI-8.6/SMI-SVR4)
	id SAA16707; Tue, 26 Feb 2002 18:53:35 -0800
Message-Id: <200202270253.SAA16707@aukland.tgivan.com>
Date: Tue, 26 Feb 2002 18:53:35 -0800 (PST)
From: Stephen Rasku <stephen@tgivan.com>
Reply-To: Stephen Rasku <stephen@tgivan.com>
Subject: Must set "ImageWidth" before writing data
To: tiff@olympiakos.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: mBkEHQfeMbxE77Akv895jQ==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc 
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 970
Lines: 27

I am trying to write an encoded strip and I am getting the error 
message specified in the subject line.  I am using v3.5.5.

I looked in the source and this happens if FIELD_IMAGEDIMENSIONS is 
not set.  However, the man page for TIFFSetField doesn't mention this 
field.  In fact, tif_dir.h, refers to this as a "multi-item field".  
This leads me to believe (possibly incorrectly) that this is set 
automatically by the TIFF library if you set the correct fields.

I am explicitly setting the following fields:

	TIFFTAG_COMPRESSION
	TIFFTAG_IMAGEWIDTH
	TIFFTAG_ROWSPERSTRIP
	TIFFTAG_ROWSPERSTRIP
	TIFFTAG_YRESOLUTION

Are there other fields I need to set to get rid of this error message?	

-- 
Stephen Rasku			E-mail:	stephen@tgivan.com
Senior Software Engineer	Web:	http://www.pop-star.net/
TGI Technologies


To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

