Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.3.146])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j0RFY97G027420
        for <joris.at.lebbeke@skynet.be>; Thu, 27 Jan 2005 16:34:09 +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 inmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j0RFXmej022461
        for <joris.at.lebbeke@skynet.be>; Thu, 27 Jan 2005 16:33:57 +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 412D060A26C; Thu, 27 Jan 2005 10:28:17 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204])
	by xserve.flids.com (Postfix) with ESMTP id 3211360A235
	for <tiff@remotesensing.org>; Thu, 27 Jan 2005 10:27:21 -0500 (EST)
Received: by rproxy.gmail.com with SMTP id g11so262321rne
	for <tiff@remotesensing.org>; Thu, 27 Jan 2005 07:26:38 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
	b=TyfwDgYOz65Cl2hWyZqWoKgvGA01joDILKyAJ6/MX0WZIyg6v0SfeMDUalFD8tRpxJHOn5BBLRPeY97mplkGcKkK34x8Twbw3oRJuPDFy+g8eFDL+pAT0VwRZtt0FkUKXAsd9p1VPc82vscSNwHDT3uFm2eyszi/zqOEIe/EjPY=
Received: by 10.38.71.4 with SMTP id t4mr113348rna;
	Thu, 27 Jan 2005 07:26:38 -0800 (PST)
Received: by 10.38.162.24 with HTTP; Thu, 27 Jan 2005 07:26:38 -0800 (PST)
Message-ID: <92d3a495050127072639c5017e@mail.gmail.com>
Date: Thu, 27 Jan 2005 16:26:38 +0100
From: Antoine <melser.anton@gmail.com>
To: tiff@remotesensing.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: [Tiff] TIFFSetField bug?
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Antoine <melser.anton@gmail.com>
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: 41cb9c9e196acc87ceb395621c088650

Hi,

In the windows 3.6.1 source code release, TIFFSetField will not set
RowsPerStrip properly. The field is either not converted from its
original status as a short (i.e., when it gets read in, even if it is
read into a uint32, and TIFFSetField is passed this variable, it
doesn't change the value to a long), or gets set to some ridiculous
figure. I know that this it is possible to set it correctly because
the tifftag.exe that can be found at
http://www.piorek.net/pub/WINDOWS_TOOLS/tifftag.exe
is able to change the datatype, and when it does does not bork the value.

Calling from tiffset and from my own code is the same. And further
modification to the value after it has been changed to a long is
impossible (so two calls does nothing).
Cheers
Antoine

-- 
G System, The Evolving GUniverse - http://www.g-system.at
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
