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.0.Beta7/8.12.0.Beta7) with ESMTP id f4T7soqF013022
	for <dron@localhost>; Tue, 29 May 2001 11:54:58 +0400
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.8.1)
	for dron@localhost (single-drop); Tue, 29 May 2001 11:54:58 +0400 (MSD)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Mon May 28 07:09:43 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id JAA06097;
	Mon, 28 May 2001 09:54:45 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Mon, 28 May 2001 09:49:09 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id JAA05876
	for tiff-outgoing; Mon, 28 May 2001 09:49:01 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from leftsidesoftware.com (leftsidesoftware.com [209.203.251.48])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id JAA05873
	for <tiff@olympiakos.com>; Mon, 28 May 2001 09:48:57 -0400
Received: from leftsidesoftware.com (CPE-203-45-120-133.nsw.bigpond.net.au [203.45.120.133])
	by leftsidesoftware.com (8.9.3/8.9.3) with ESMTP id RAA27457;
	Mon, 28 May 2001 17:57:02 +1000 (EST)
Received: by leftsidesoftware.com from localhost
    (router,SLMail V3.2); Mon, 28 May 2001 18:57:06 +1000
Received: from calvin.lss.com.au [192.168.0.5]
 by leftsidesoftware.com [192.168.0.1]  (SLmail 3.2.3108) with ESMTP
 id 426DF40E68B64AB6A2AFFD267EEF49D1
 for <pjmonty@csi.com> plus 1 more; Mon, 28 May 2001 17:57:05 1000
Message-Id: <5.1.0.14.2.20010528175435.00a13190@lss.com.au>
X-Sender: jpotter@lss.com.au
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 28 May 2001 17:56:54 +1000
To: tiff@olympiakos.com
From: Jonathan Potter <jpotter@lss.com.au>
Subject: Re: Possible problem with TIFFReadRGBAImage ?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-SLUIDL: D9911A77-D8E748A8-BCDA90BA-5EE872F0
Sender: owner-tiff@olympiakos.com
Status: RO
Content-Length: 1586
Lines: 42

Dear all,

I recently posted the following message to this list. I've since discovered 
(with thanks to Peter Montgomery for his comments), that my problem was 
that TIFFReadRGBAImage doesn't, in fact, return the image in ABGR format - 
it returns it in ARGB format. So I withdraw this bug suggestion, and humbly 
submit instead a request for the documentation on this interface to be 
clarified (the docs definitely say that it returns ABGR).

Regards,
Jonathan Potter

--------------------------------------------------------------------------

Hi all,

I'm wondering if I have stumbled onto a problem with the TIFFReadRGBAImage 
function?

Please see the tiff image at ftp://ftp.lss.com.au/misc/image06.tif

Using my program, which uses the TIFFReadRGBAImage interface under Windows, 
the red and blue colours in the image are reversed. As you know, Windows 
uses an ABGR format in 32 bit mode, which is what the TIFFReadRGBAImage 
returns most of the time. However, on this particular image it is returning 
an ARGB format image.

I have traced the problem to the putRGBcontig8bittile function in 
tif_getimage.c. If I modify the UNROLL8 macro line and swap the order of 
pp[0] and pp[2], this image then displays perfectly.

Not knowing anything about tifflib, or the tiff format in general, I 
thought I should post to this list and ask if anyone has come across this 
before I make this a permanent change to my program.

Many thanks,
Jonathan Potter



          -- Jonathan Potter -- Left Side Software -- +61-414-721752 --
                              http://www.lss.com.au/

