Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery014.isp.belgacom.be (Postfix) with ESMTP id 2B3A02F003A
	for <joris.at.lebbeke@skynet.be>; Mon, 11 Feb 2008 17:24:29 +0100 (CET)
Authentication-Results: in.mx.skynet.be; dkim=neutral (message not signed) header.i=none
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 11 Feb 2008 17:24:28 +0100
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 m1BG3VfR010533;
	Mon, 11 Feb 2008 11:03:41 -0500
Received: from rune.pobox.com (rune.pobox.com [208.210.124.79])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m1BG3O15010528
	for <tiff@lists.maptools.org>; Mon, 11 Feb 2008 11:03:25 -0500
Received: from rune (localhost [127.0.0.1])
	by rune.pobox.com (Postfix) with ESMTP id 44E0D196F64;
	Mon, 11 Feb 2008 11:03:44 -0500 (EST)
Received: from [192.168.2.4] (dpc674728121.direcpc.com [67.47.28.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id 6A39B195E8D;
	Mon, 11 Feb 2008 11:03:33 -0500 (EST)
Message-ID: <47B071B4.5060405@pobox.com>
Date: Mon, 11 Feb 2008 11:03:00 -0500
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
MIME-Version: 1.0
To: Mick_ONeill@technologyonecorp.com
Subject: Re: [Tiff] TIFFReadRGBAImage rendering upside-down
References: <6623A6CB0A733746B799DE82F65583190CA658@briavdmail01.technologyonecorp.com>
In-Reply-To: <6623A6CB0A733746B799DE82F65583190CA658@briavdmail01.technologyonecorp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tiff@lists.maptools.org
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.00002a87
X-MSP-STORE: Mon, 11 Feb 2008 17:24:31 +0100
Status:   

Mick O'Neill wrote:
> Hi,
> 
> I have some odd TIFF files here (that do have a subsampling error being
> reported for the OJPEG compressed images) that, when I call the
> TIFFReadRGBAImage function, renders the RGBA upside down (flipped, not
> rotated). I was wondering if there was something in the TIFF headers
> that tell me this is happening? Or perhaps some other info elsewhere.
> There are some applications around that read these TIFFs correctly, and
> others that will not read them at all.
> 
> libtiff version 3.9.0 Beta
>  
> Any ideas appreciated.

Mick,

The tiffinfo reports:

    Orientation: row 0 top, col 0 lhs

Which is (I believe) the default case where the first pixel in the file
is the top left corner of the image.  I also ran tiff2rgba with the
current development version of libtiff and tiff2rgba and it came out
with the first page "right side up", so I'm surprised you are having problems.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

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