Received: from mailgate003.isp.belgacom.be (mailgate003.isp.belgacom.be [195.238.6.88])
	by maildelivery015.isp.belgacom.be (Postfix) with ESMTP id 6B28D4F803C
	for <joris.at.lebbeke@skynet.be>; Tue,  7 Aug 2007 16:16:38 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 07 Aug 2007 16:16:37 +0200
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 l77E2BYT012940;
	Tue, 7 Aug 2007 10:03:35 -0400
Received: from sceptre.pobox.com (sceptre.pobox.com [207.106.133.20])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l77E28JG012937
	for <tiff@lists.maptools.org>; Tue, 7 Aug 2007 10:02:08 -0400
Received: from sceptre (localhost.localdomain [127.0.0.1])
	by sceptre.pobox.com (Postfix) with ESMTP id 29F092F0;
	Tue,  7 Aug 2007 10:02:30 -0400 (EDT)
Received: from [192.168.2.3] (dpc674728121.direcpc.com [67.47.28.121])
	by sceptre.sasl.smtp.pobox.com (Postfix) with ESMTP id 4149C6C85D;
	Tue,  7 Aug 2007 10:02:20 -0400 (EDT)
Message-ID: <46B87B5F.3040501@pobox.com>
Date: Tue, 07 Aug 2007 10:02:07 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 1.5.0.9 (X11/20070104)
MIME-Version: 1.0
To: Mircea Ciocan <mirceac@gmail.com>
Subject: Re: [Tiff] Problem loading a RGB floating point TIFF
References: <8b4ad8cb0708070349x444af78et668ae7fd6d7e7cff@mail.gmail.com>
In-Reply-To: <8b4ad8cb0708070349x444af78et668ae7fd6d7e7cff@mail.gmail.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.000026ee
X-MSP-STORE: Tue, 07 Aug 2007 16:16:38 +0200
Status:   

Mircea Ciocan wrote:
>  Hello,
> 
>  I'm trying to load some high-dynamic images, both gray scale and RGB,
> they are expressed as 32bits floats, the gray scale image ( 1
> sample/pix ) loads OK but I have an RGB image that could not be
> loaded, here are the main tags of those two images:
> 
> This image does NOT work:
> ImageWidth (1 Short): 637
> ImageLength (1 Short): 502
> BitsPerSample (3 Short): 32, 32, 32
> Compression (1 Short): Uncompressed
> Photometric (1 Short): RGB
> StripOffsets (1 Long): 8
> SamplesPerPixel (1 Short): 3
> RowsPerStrip (1 Short): 502
> StripByteCounts (1 Long): 3837288
> PlanarConfig (1 Short): Contig
> SampleFormat (3 Short): 3, 3, 3
> 
> This image works:
> ImageWidth (1 Short): 1024
> ImageLength (1 Short): 6144
> BitsPerSample (1 Short): 32
> Compression (1 Short): Uncompressed
> Photometric (1 Short): MinIsBlack
> StripOffsets (6 Long): 8, 4194312, 8388616, 12582920, 16777224,...
> SamplesPerPixel (1 Short): 1
> RowsPerStrip (1 Short): 1024
> StripByteCounts (6 Long): 4194304, 4194304, 4194304, 4194304, 4194304,...
> PlanarConfig (1 Short): Contig
> SampleFormat (1 Short): 3
> 
> The library version is TIFFLIB_VERSION 20060323 and the error code is
> unsupported format. It seem that this version does not support 3
> sample/pix floating point encoding and my question is that if there is
> a later version that does support that format or if not if support for
> this format is planned in the near future ?

Mircea,

Are you using the TIFFReadRGBAImage() interface?  At the risk of being
defensive, reporting that TIFFReadRGBAImage() does not support a particular
image configuration is *not* the same as saying libtiff does not support it.
TIFFReadRGBAImage() is a convenience function to normalize a wide variety of
input images into easy to use form, but was never expected to support all
files that libtiff supports.

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/
