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.18 19:47 "Re: tif_getimage - using colormap even if photometric interpwrong", by Chris Cox
2007.01.18 20:47 "Re: tif_getimage - using colormap even if photometricinterpwrong", by Joris Van Damme
2007.01.18 21:25 "Re: tif_getimage - using colormap even if photometricinterpwrong", by Frank Warmerdam
2007.01.22 10:13 "Re: tif_getimage - using colormap even ifphotometricinterpwrong", by Gerben Vos
2007.01.18 23:33 "Re: tif_getimage - using colormap even if photometricinterpwrong", by Bob Friesenhahn
2007.01.18 23:54 "Re: tif_getimage - using colormap even if photometricinterpwrong", by Joris Van Damme

2007.01.18 20:47 "Re: tif_getimage - using colormap even if photometricinterpwrong", by Joris Van Damme

Chris, Frank,

Chris Cox wrote:
> Bottom line: I think the change would cause more problems than it
> would solve.
> It might solve the specific case they are describing (sounds like
> mapping data), but would likely create more problems for the larger
> TIFF user community.

I agree. This would yet again be a step away from actual TIFF. In actual
TIFF, tags that don't matter, are ignored, and that includes the
Colormap tag for Photometric MINISBLACK like it includes the T4Options
tag for Compression JPEG and the Subsampling tags for Photometric RGB.

I would recommend to solve this on the caller level. The customer with
this particular problem can use TIFFReadEncodedXxx, read the actual tag
value of Colormap (which might not currently be support without changes,
but could rightly be considered useful in a general tag access interface
regardless of image interpretation), and apply the Colormap next any way
he sees fit for his purpose.

The main thing is, you can rightly make the codec behave robust on wrong
images. But it is not right to make it behave wrong on whatever image.
That creates more problems further down the road, then it solves. Taking
a Colormap into account when Photometric is MINISBLACK is just that, it
is just wrong.


Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html