Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas028.isp.belgacom.be (localhost [127.0.0.1])
        by inav004.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id l0VJ6UGE029119
        for <joris.at.lebbeke@skynet.be>; Wed, 31 Jan 2007 20:06:30 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx005.isp.belgacom.be (inmx005.isp.belgacom.be [195.238.5.148])
        by inas028.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id l0VJ6LG9020283
        for <joris.at.lebbeke@skynet.be>; Wed, 31 Jan 2007 20:06:21 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx005.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l0VJ6I7q006506
        for <joris.at.lebbeke@skynet.be>; Wed, 31 Jan 2007 20:06:18 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 l0VIpMJC032688;
	Wed, 31 Jan 2007 13:51:30 -0500
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by duke.maptools.org (8.12.11/8.12.10) with SMTP id l0VIoJPj032668
	for <tiff@lists.maptools.org>; Wed, 31 Jan 2007 13:50:20 -0500
Received: (qmail 19701 invoked by uid 0); 31 Jan 2007 18:50:17 -0000
Received: from 80.243.168.94 by www032.gmx.net with HTTP;
	Wed, 31 Jan 2007 19:50:17 +0100 (CET)
Content-Type: text/plain; charset="iso-8859-1"
Date: Wed, 31 Jan 2007 19:50:16 +0100
From: "Reinhard Mayr aka Czerwinski" <czerwinski1977@gmx.net>
In-Reply-To: <Pine.SOC.4.60.0701311147080.24274@blade.simplesystems.org>
Message-ID: <20070131185016.36820@gmx.net>
MIME-Version: 1.0
References: <20070131163904.36820@gmx.net>
	<Pine.SOC.4.60.0701311056040.24274@blade.simplesystems.org>
	<20070131172011.36820@gmx.net>
	<Pine.SOC.4.60.0701311147080.24274@blade.simplesystems.org>
Subject: Re: [Tiff] 16bit grayscale with colormap
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-Authenticated: #28251939
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Priority: 3
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
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by inav004.isp.belgacom.be id l0VJ6UGE029119
X-UIDL: 000000000023ceae.00002057
X-MSP-STORE: Wed, 31 Jan 2007 20:06:37 +0100
Status:   

Hmmm ... I go the same message with ImageMagick's imdisplay.exe. Maybe th=
e error message is just a bit too un-exact: the color map is there (accor=
ding to the dump), maybe it's just about the unexpected length of 192kB i=
nstead of 256 byte? The values of the dump represent exactly what I have =
in the color map (repeated ASCII "0123456789ABCDEF").

Does GraphMagick do a length check for that tag?

-------- Original-Nachricht --------
Datum: Wed, 31 Jan 2007 11:53:41 -0600 (CST)
Von: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
An: Reinhard Mayr aka Czerwinski <czerwinski1977@gmx.net>
CC: tiff@lists.maptools.org
Betreff: Re: [Tiff] 16bit grayscale with colormap

> On Wed, 31 Jan 2007, Reinhard Mayr aka Czerwinski wrote:
>=20
> > Bob,
> >
> > thanks for that quick response! Attached there is the mentioned sampl=
e
> file I created with a hex editor. (The colormap contains just crap data=
 but
> should be enough for a proof of concept.) The opening behavior of some
> programs was described in my initial post.
> >
> > How can you display the file?
>=20
> No, I can not.  In fact libtiff's tiffinfo does not like the file=20
> either (libtiff fails to locate the colormap) so it seems that the=20
> file is not formulated correctly:
>=20
> % tiffinfo CytoScout16bitImageJ-0106_3-v5.tif
> CytoScout16bitImageJ-0106_3-v5.tif: Error fetching data for field
> "ColorMap".
> MissingRequired: CytoScout16bitImageJ-0106_3-v5.tif: TIFF directory is
> missing required "Colormap" field.
>=20
> % tiffdump CytoScout16bitImageJ-0106_3-v5.tif
> CytoScout16bitImageJ-0106_3-v5.tif:
> Magic: 0x4d4d <big-endian> Version: 0x2a
> Directory 0: offset 8 (0x8) next 0 (0)
> SubFileType (254) LONG (4) 1<0>
> ImageWidth (256) SHORT (3) 1<200>
> ImageLength (257) SHORT (3) 1<200>
> BitsPerSample (258) SHORT (3) 1<16>
> Photometric (262) SHORT (3) 1<3>
> ImageDescription (270) ASCII (2) 34<ImageJ=3D1.37v\nmin=3D57.0\nma ...>
> StripOffsets (273) LONG (4) 1<768>
> SamplesPerPixel (277) SHORT (3) 1<1>
> RowsPerStrip (278) SHORT (3) 1<200>
> StripByteCounts (279) LONG (4) 1<80000>
> Colormap (320) SHORT (3) 196608<12337 12851 13365 13879 14393 16706=20
> 17220 17734 12337 12851 13365 13879 14393 16706 17220 17734 12337=20
> 12851 13365 13879 14393 16706 17220 17734 ...>
>=20
> The error reported by libtiff when used by GraphicsMagick is that it=20
> fails to retrieve the colormap:
>=20
>    Error fetching data for field "ColorMap".
>=20
> Bob
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfries=
en/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

--=20
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!=20
Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
