AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
February 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2009.02.13 03:24 "TIFFReadRGBAImage w/ 8bit-gray + aplha", by Chris Losinger
2009.02.13 08:50 "Re: TIFFReadRGBAImage w/ 8bit-gray + aplha", by Joris Van Damme
2009.02.13 17:36 "Re: TIFFReadRGBAImage w/ 8bit-gray + aplha", by Bob Friesenhahn
2009.02.13 21:34 "Re: TIFFReadRGBAImage w/ 8bit-gray + aplha", by Frank Warmerdam

2009.02.13 21:34 "Re: TIFFReadRGBAImage w/ 8bit-gray + aplha", by Frank Warmerdam

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