Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas020.isp.belgacom.be (localhost [127.0.0.1])
        by inav005.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id l11ABYp0024543
        for <joris.at.lebbeke@skynet.be>; Thu, 1 Feb 2007 11:11:34 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx019.isp.belgacom.be (inmx019.isp.belgacom.be [195.238.5.138])
        by inas020.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id l11ABNeK021314
        for <joris.at.lebbeke@skynet.be>; Thu, 1 Feb 2007 11:11:26 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx019.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l11ABF7F026524
        for <joris.at.lebbeke@skynet.be>; Thu, 1 Feb 2007 11:11:15 +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 l119ubs8014818;
	Thu, 1 Feb 2007 04:56:53 -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 l119uX4V014815
	for <tiff@lists.maptools.org>; Thu, 1 Feb 2007 04:56:34 -0500
Received: (qmail 30439 invoked by uid 0); 1 Feb 2007 09:56:30 -0000
Received: from 80.243.168.94 by www058.gmx.net with HTTP;
	Thu, 01 Feb 2007 10:56:30 +0100 (CET)
Content-Type: text/plain; charset="iso-8859-1"
Date: Thu, 01 Feb 2007 10:56:30 +0100
From: "Reinhard Mayr aka Czerwinski" <czerwinski1977@gmx.net>
In-Reply-To: <45C0E8AE.3090906@cerious.com>
Message-ID: <20070201095630.285240@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>
	<20070131185016.36820@gmx.net> <45C0E8AE.3090906@cerious.com>
Subject: Re: [Tiff] 16bit grayscale with colormap
To: tiff@lists.maptools.org
X-Authenticated: #28251939
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Priority: 3
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 inav005.isp.belgacom.be id l11ABYp0024543
X-UIDL: 000000000023ceae.00002067
X-MSP-STORE: Thu, 01 Feb 2007 11:11:37 +0100
Status: RO

Philip,

thank you for your precious hint -- that was the problem. SHORT is 2 byte=
s, not 1!

I managed to create a 16bit grayscale TIFF with a colormap.
ImageMagick displays the file (although the colors seem to be weired).
ImageJ ignores the colormap.
Microsoft Tools reject the file.

It seems as if this is a border-line interpretation of the specs and, the=
refore, questionable whether a solution like that would make sense at all=
. As far as I am concerned, I think of refraining from 16bit+colormap and=
 try to implement like ImageJ does: info about brightness/contrast in a T=
IFF-Tag (0x0270 ImageDescription, as a text), and doing all the palette s=
tuff for rendering by my own... :-/

Thank you all for your help!

Cz.

-------- Original-Nachricht --------
Datum: Wed, 31 Jan 2007 14:06:22 -0500
Von: Phillip Crews <pcrews@cerious.com>
An: tiff@lists.maptools.org
CC:=20
Betreff: Re: [Tiff] 16bit grayscale with colormap

> Your color map is not the right length. The color map for a 16-bpp imag=
e=20
> should be 393216 bytes (196608 words).
>=20
> - Phillip
>=20
> Reinhard Mayr aka Czerwinski wrote:
> > Hmmm ... I go the same message with ImageMagick's imdisplay.exe. Mayb=
e
> the error message is just a bit too un-exact: the color map is there
> (according to the dump), maybe it's just about the unexpected length of=
 192kB
> instead of 256 byte? The values of the dump represent exactly what I ha=
ve in
> the color map (repeated ASCII "0123456789ABCDEF").
>=20
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

--=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/
