Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id 22173400125
	for <info@awaresystems.be>; Fri, 13 Feb 2009 23:02:06 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-k.b-one.net (Postfix) with ESMTP id C853AC222C2
	for <info@awaresystems.be>; Fri, 13 Feb 2009 23:02:04 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 944ED1D1AFB0D;
	Fri, 13 Feb 2009 17:01:15 -0500 (EST)
Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com
	[207.106.133.19])
	by lists.maptools.org (Postfix) with ESMTP id 1A7471D1D36F1
	for <tiff@lists.maptools.org>; Fri, 13 Feb 2009 16:34:54 -0500 (EST)
Received: from localhost.localdomain (unknown [127.0.0.1])
	by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id
	E624B99997; Fri, 13 Feb 2009 16:34:53 -0500 (EST)
Received: from [192.168.2.4] (unknown [67.47.28.121]) (using TLSv1 with
	cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate
	requested)
	by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id
	05A3699993; Fri, 13 Feb 2009 16:34:46 -0500 (EST)
Message-ID: <4995E771.3070003@pobox.com>
Date: Fri, 13 Feb 2009 16:34:41 -0500
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <7.0.1.0.2.20090212221443.0572bee0@earthlink.net>
	<8F2D03F0E4DD42D7A01CF7C8495B0D10@awarec74cb3e1c>
In-Reply-To: <8F2D03F0E4DD42D7A01CF7C8495B0D10@awarec74cb3e1c>
X-Pobox-Relay-ID: 26DC57F6-FA16-11DD-A7B0-0433C92D7133-06493634!a-sasl-fastnet.pobox.com
Cc: Chris Losinger <losinger@earthlink.net>
Subject: Re: [Tiff] TIFFReadRGBAImage w/ 8bit-gray + aplha
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Joris Van Damme (AWare Systems) wrote:
> Chris,
> 
>> i've tested with a clean copy of LibTiff v3.7.1, using the code
>> below, and my own slightly tweaked version of v3.8.2 - same crash.
> 
> I've tested with current beta of LibTiff 4. Low-level LibTiff 
> (TIFFReadEncodedXxx) does not get into trouble. However, the LibTiff RGBA 
> interface does crash and burn, access violation style, even in version 4.0. 
> At first examination, there's nothing that much out of the ordinary to this 
> image, except that the two channels (MinIsBlack grayscale channel and the 
> pre-calculated alpha channel) are stored planar, not chunky (in LibTiff 
> speak, the tag TIFFTAG_PLANARCONFIG has the value PLANARCONFIG_SEPARATE) 
> which is not all that common but certainly is perfectly legit.

Folks,

As Joris supposed, the problem was that the RGBA (tif_getimage.c) logic
did not have appropriate handling for grey+alpha separated files. I have
added this though I suspect that separated palette + alpha files still
don't work.

As always, the RGBA interface is a work in progress.  But even when it
does not work, is should not crash!

   http://bugzilla.maptools.org/show_bug.cgi?id=2006

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    | Geospatial Programmer for Rent

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