I need to convert raster from one format to another (geotiff-->jpeg2000). First I tried with very simple workspace, having input geotiff and direct to output jpeg2000, but I got error message: JPEG2000 writer: This format cannot support palettes. Consider removing or resolving palettes that are attached to the raster

What should I do?


How about using GDAL? It is available via FWTools (easier install) on Windows, via apt-get on Ubuntu, and via a binary for OSX.

Once you have GDAL just go ahead and use:

gdal_translate -of JP2OpenJPEG <input> <output>


gdal_translate -of JPEG2000 <input> <output>

The above command uses the built in JP2 format conversion. ECWJP2 or Kakadu might give you better results but they require a license.

  • Why "to do the same task" ECWJP2 or Kakadu are better? There are some GDAL bug or weakness? – Peter Krauss Apr 22 '13 at 17:53

I used RasterPaletteResolver transformer. It helps.

  • 1
    Yeah, the problem is that the output format just doesn't support the palettes you have attached to the source. If you don't want the palettes then use the RasterPaletteRemover transformer. Otherwise the RasterPaletteResolver will use the palette to apply the correct color values to the output. – Mark Ireland Jun 14 '12 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.