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
September 2004

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

2004.09.01 20:39 "Stacked tiffs with colourmaps", by David Scriven
2004.09.02 01:27 "Re: Stacked tiffs with colourmaps", by Joris Van Damme
2004.09.02 01:44 "Re: Stacked tiffs with colourmaps", by Chris Cox
2004.09.02 16:22 "Re: Stacked tiffs with colourmaps", by Ross A Finlayson
2004.09.02 17:08 "Re: Stacked tiffs with colourmaps", by Bob Friesenhahn

2004.09.02 01:27 "Re: Stacked tiffs with colourmaps", by Joris Van Damme

> Is there any easier/ more efficient way to do this? - it
> would seem to make sense if only one colourmap was added
> that all the planes could refer to.

See also http://www.asmail.be/msg0054796490.html, because subject returned in
other thread.

Once or twice every couple of years, the TIFF 7.0 subject comes up. That is a
tradition of almost a decade old, and I'm quite sure it'll continue for at least
as long still. On such occasions, I always add that I'd like to see memory
management in TIFF 7.0, and reference counting. That would solve your problem
too, you could have one color map, counted-referenced in all IFD's.

Unfortunately, TIFF 6.0 doesn't include that. There is no legal solution to your
problem, I think.

*But* if you are very sure that your files will not escape into the wild, and
will not get edited by TIFF page-joggling or other tools, you could nevertheless
write the color map only once, and state the same color map offset in all IFD's.
That is *not legal* in TIFF 6.0, but it takes some analysis to detect even, so
normal readers would not have any problems with the file. Neither would
transcoders. Only apps that, for instance, delete pages and try to reuse lost
memory writing other data into it and such, would cause problems.

I repeat that this is *not legally TIFF 6.0*. I also have no clue how to do it
with LibTiff, should you nevertheless want to.


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