[gdal-dev] Combining TIFFs w/ different color palettes

Michael Koehmstedt mykillk at gmail.com
Thu Jan 6 19:02:53 EST 2011


That's a shame. I just might have to write my own GDAL tool to accomplish
this then (should be a fun way to learn the GDAL library as well). I've
tried converting to RGB and going from there, but the resulting file sizes
become very large in comparison and take hours to merge.

On Wed, Jan 5, 2011 at 2:12 PM, Frank Warmerdam <warmerdam at pobox.com> wrote:

> On 11-01-05 04:06 PM, MyKillK wrote:
>
>>
>> Hello all,
>>
>> My question is simple. Is it possible to combine two GeoTIFFs, each with
>> its
>> own unique color palette into a single image that is properly color
>> mapped?
>> Each image only has 16 colors so I feel like it should be possible to copy
>> Image #1's color table straight into indexes 0-15 and then remap Image
>> #2's
>> color table to indexes 16-31. For the life of I can't figure out how this
>> can be done, it always wants to use Image #1's color table alone in the
>> merged TIFF.
>>
>
> Michael,
>
> I am not aware of any existing GDAL application to do this.  You  could
> use pct2rgb.py on each image, merge the RGB images, and then use rgb2pct.py
> to produce a paletted image from the result that would likely have 32
> colors.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam<http://pobox.com/%7Ewarmerdam>
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Michael Koehmstedt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110106/c3035472/attachment.html


More information about the gdal-dev mailing list