[FWTools] JPEG2000 color tables

Frank Warmerdam warmerdam at pobox.com
Thu Feb 9 16:07:24 EST 2006

Travis Kirstine GIS Tech wrote:
> I've been trying to convert a 8bit geotiff with a colour table to a .jp2
> file using gdal_translate.  The converstion works except the out .jp2 file
> is only a greyscale image with no colour table. Is there a -co to apply the
> in colour table to the out .jp2


You likely ought to convert to rgb first.

pct2rgb.bat pc.tif rgb.tif
gdal_translate -of JP2KAK rgb.tif rgb.jp2

There are no options for conversion to RGB as part of the gdal_translate

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
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the FWTools mailing list