TransWikia.com

Converting 32 bit image to 8 bit palette raster image using FME

Geographic Information Systems Asked on November 1, 2021

I need to convert 32-bit TIFF image (input) to 8-bit palette TIFF image (output) by using FME.

How can I do this by using palette of output image?

input 32 bit image information

output 8bit image information

One Answer

In FME you would use a RasterPaletteGenerator transformer, like so:

enter image description here

What I will say is that I don't think GeoTIFF supports a 32-bit palette. i.e. even though I add an alpha band with the RasterBandAdder, and even though the RasterPaletteGenerator creates me a palette with RGBA values, the GeoTIFF output palette only has RGB values.

The log file tells me:

2020-02-20 10:04:22| 8.6| 0.0|WARN |GEOTIFF writer: Unsupported palette value interpretation 'RGBA32'. Converting to interpretation 'RGB24'. If this conversion is undesired, consider changing the interpretation explicitly

So, you can get an 8-bit image with a palette easily enough, but even if your input is 32-bit RGBA, the palette will be 24-bit RGB.

Answered by Mark Ireland on November 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP