[gdal-dev] Converting palette image to RBG

Jean-Claude Repetto jrepetto at free.fr
Thu Feb 14 02:22:49 EST 2008


Christopher Barker a écrit :
> Hi all,
> 
> Does GDAL have a method for converting a paletted image (color table) to 
>  and RGB image? I've written code for this in Python, using PIL, but it 
> dawned on me that it may be built in to GDAL already.
> 
> -thanks, Chris
> 
> 
> 

Hi Chris,

I am using ImageMagick :
convert paletted-image.png -type TrueColor rgb-image.png

Jean-Claude





More information about the gdal-dev mailing list