Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas010.isp.belgacom.be (localhost [127.0.0.1])
        by inav018.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id jB5Dur42030908
        for <joris.at.lebbeke@skynet.be>; Mon, 5 Dec 2005 14:56:53 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.5.90])
        by inas010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id jB5Dujf4015521
        for <joris.at.lebbeke@skynet.be>; Mon, 5 Dec 2005 14:56:46 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id jB5DufUt024176
        for <joris.at.lebbeke@skynet.be>; Mon, 5 Dec 2005 14:56:42 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jB5DnJgI020603;
	Mon, 5 Dec 2005 08:49:26 -0500
Received: from outmx026.isp.belgacom.be (outmx026.isp.belgacom.be
	[195.238.2.91])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jB5DnGPO020600
	for <tiff@lists.maptools.org>; Mon, 5 Dec 2005 08:49:17 -0500
Received: from outmx026.isp.belgacom.be (localhost [127.0.0.1])
	by outmx026.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with
	ESMTP id jB5DnELc012959
	for <tiff@lists.maptools.org>; Mon, 5 Dec 2005 14:49:15 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (209-149.246.81.adsl.skynet.be [81.246.149.209])
	by outmx026.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with SMTP
	id jB5DnBGK012909; Mon, 5 Dec 2005 14:49:11 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <000d01c5f9a2$b5c9b300$d195f651@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "Tobias Hilbricht" <hilbricht@linopus.de>, <tiff@lists.maptools.org>
References: <200512051538.34599.hilbricht@linopus.de>
Subject: Re: [Tiff] Incorrect rendering of tif-images by libtiff 3.7.2
Date: Mon, 5 Dec 2005 14:49:26 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Cc: 
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000f00
X-MSP-STORE: Mon, 05 Dec 2005 14:56:59 +0100
Status:   

Tobias Hilbricht wrote:
> I exported a Pixel image as a tiff-image using that application; you
> can see the file at http://www.linopus.de/debian/pixeltest.tif

ImageWidth (1 Long): 640
ImageLength (1 Long): 480
ResolutionUnit (1 Short): Inch
BitsPerSample (3 Short): 8, 8, 8
Compression (1 Short): Uncompressed
Photometric (1 Short): RGB
StripOffsets (30 Long): 380, 31100, 61820, 92540, 123260, 153980,...
SamplesPerPixel (1 Short): 3
RowsPerStrip (1 Short): 16
StripByteCounts (30 Long): 380, 31100, 61820, 92540, 123260, 153980,...

You can easilly see what's wrong with it: the StripByteCounts values are
incorrectly identical to the StripOffsets value. Haven't really got time
right now to try, but I suspect that if you calculate correct value of
StripByteCounts, which should be easy since this TIFF does not use any
compression, and correct the StripByteCounts value, everything would
work fine.

The fact that some applications render this TIFF, is probably simply
because they apply some robust StripByteCounts value correction in a
case like this.

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
