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
January 2007

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

2007.01.31 16:39 "16bit grayscale with colormap", by Reinhard Mayr Aka Czerwinski
2007.01.31 16:56 "Re: 16bit grayscale with colormap", by Toby Thain
2007.01.31 17:06 "Re: 16bit grayscale with colormap", by Bob Friesenhahn
2007.01.31 17:36 "Re: 16bit grayscale with colormap", by Phillip Crews
2007.01.31 18:49 "Re: 16bit grayscale with colormap", by Ed Grissom
2007.01.31 17:01 "Re: 16bit grayscale with colormap", by Bob Friesenhahn
2007.01.31 17:31 "Re: 16bit grayscale with colormap", by Joris Van Damme
2007.01.31 17:53 "Re: 16bit grayscale with colormap", by Bob Friesenhahn
2007.01.31 18:50 "Re: 16bit grayscale with colormap", by Reinhard Mayr Aka Czerwinski
2007.01.31 19:04 "Re: 16bit grayscale with colormap", by Bob Friesenhahn
2007.01.31 19:06 "Re: 16bit grayscale with colormap", by Phillip Crews
2007.02.01 09:56 "Re: 16bit grayscale with colormap", by Reinhard Mayr Aka Czerwinski
2007.01.31 19:50 "Re: 16bit grayscale with colormap", by Joris Van Damme

2007.02.01 09:56 "Re: 16bit grayscale with colormap", by Reinhard Mayr Aka Czerwinski

Philip,

thank you for your precious hint -- that was the problem. SHORT is 2 bytes,
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,
therefore, 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
TIFF-Tag (0x0270 ImageDescription, as a text), and doing all the palette
stuff 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: 
Betreff: Re: [Tiff] 16bit grayscale with colormap

> Your color map is not the right length. The color map for a 16-bpp image 
> should be 393216 bytes (196608 words).
> 
> - Phillip
> 
> Reinhard Mayr aka Czerwinski wrote:
> > Hmmm ... I go the same message with ImageMagick's imdisplay.exe. Maybe
> 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 have
> in
> the color map (repeated ASCII "0123456789ABCDEF").
> 
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer