Hi Steve,

I have one solution with gdal that I showed in some context that I can't remember now.  It changes palette images. It does a simple reclass of the color values with gdal_calc and some glue with awk and sed.

https://gist.github.com/LarsSchy/c1be96fa03f7dc11df4247be033e2705

Have fun / Lars Schylberg

Den 2021-09-16 kl. 18:46, skrev Steve Lime:
Hi all: I think this is possible. What's the easiest/best way to recolor a raster image, so for example, turning all pixels of 255 0 0 to 0 0 255? There are only 6 colors in the input image I need to deal with.

--Steve

_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to