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
November 2008

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

2008.11.21 21:27 "Re: RGB to palette images", by Richard Nolde
2008.11.21 21:45 "Re: RGB to palette images", by Kevin Myers
2008.11.21 21:56 "Re: RGB to palette images", by Bob Friesenhahn
2008.11.21 22:12 "Re: RGB to palette images", by Toby Thain
2008.11.21 21:54 "Re: RGB to palette images", by Frank Warmerdam
2008.11.21 22:24 "Re: RGB to palette images", by Bob Friesenhahn
2008.11.21 22:46 "Re: RGB to palette images", by Kevin Myers
2008.11.21 23:51 "Re: RGB to palette images", by Kevin Myers

2008.11.21 21:56 "Re: RGB to palette images", by Bob Friesenhahn

On Fri, 21 Nov 2008, Kevin Myers wrote:
>
> But, while scanning an image, if I come across a new unique color (a color 
> that hasn't already been added to the palette), then I do know the index into 
> the palette, because I know that this is the nth new color that I have added 
> to the palette, right?  So, I still think that this could be done in a single 
> pass, building the palette on the fly, if desired, but maybe I am overlooking 
> something.

The common problem is that the image contains more colors than the 
palette can contain.  In the case where the input file is carefully 
crafted so that you always know that the number of colors will fit in 
the colormap, then the colormap can be constructed on the fly.  I 
don't know if libtiff requires that the colormap be supplied up front, 
or if it can be attached at the end.

If you make sure to check for separate email from me, I will describe 
a method to speed quantization of your huge imges using existing 
GraphicsMagick

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/