Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx016.isp.belgacom.be (inmx016.isp.belgacom.be [195.238.2.219])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j0LMKZ4D019117
        for <joris.at.lebbeke@skynet.be>; Fri, 21 Jan 2005 23:20:35 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j0LMKPnW014104
        for <joris.at.lebbeke@skynet.be>; Fri, 21 Jan 2005 23:20:28 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 8DA2A5DD16B; Fri, 21 Jan 2005 17:20:11 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mail.howardsilvan.com (gateway.howardsilvan.com [64.146.212.27])
	by xserve.flids.com (Postfix) with ESMTP id 8FE355DD147
	for <tiff@remotesensing.org>; Fri, 21 Jan 2005 17:20:04 -0500 (EST)
Received: from bilbo.x101.com (localhost.localdomain [127.0.0.1])
	by mail.howardsilvan.com (8.11.6/8.11.6) with ESMTP id j0LMJu930693;
	Fri, 21 Jan 2005 14:19:56 -0800
Date: Fri, 21 Jan 2005 14:19:56 -0800
From: Lee Howard <faxguy@howardsilvan.com>
To: Andrey Kiselev <dron@ak4719.spb.edu>
Subject: Re: [Tiff] JPEG (T.30-E, fax) in TIFF
Message-ID: <20050121221956.GG27704@bilbo.x101.com>
References: <20050109054652.GC12383@bilbo.x101.com>
	<000f01c4f975$98d1c270$84b7f551@dfgrrxsknr4e>
	<20050113152151.GO27050@bilbo.x101.com>
	<20050121204416.GA5163@ak4719.spb.edu>
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20050121204416.GA5163@ak4719.spb.edu>;
	from dron@ak4719.spb.edu on Fri, Jan 21, 2005 at 12:44:16 -0800
X-Mailer: Balsa 1.4.1
Lines: 19
Cc: tiff@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 0e656a03c485cad2f227f8aa81285968

On 2005.01.21 12:44 Andrey Kiselev wrote:

> You should set at least one of these two tags: ImageHeight or
> RowsPerStrip. If you skip both libtiff makes assumption that you have
> a
> strip for every component. I don't know why libtiff operates in such
> way, probably there was some reasoning in the first place. So just set
> the ImageHeight and problem should go away.

I think that you meant ImageLength.

In any case, I was using ImageLength, but I wasn't using it before 
SamplesPerPixel.  After doing an additional "dummy" call to 
TIFFSetField(tif, TIFFTAG_IMAGELENGTH, 2000) just before setting 
SamplesPerPixel the problem goes away.

Thank you for your help.

Lee.
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
