<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Steve,</p>
<p>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.<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://gist.github.com/LarsSchy/c1be96fa03f7dc11df4247be033e2705">https://gist.github.com/LarsSchy/c1be96fa03f7dc11df4247be033e2705</a><br>
</p>
<p>Have fun / Lars Schylberg<br>
</p>
<div class="moz-cite-prefix">Den 2021-09-16 kl. 18:46, skrev Steve
Lime:<br>
</div>
<blockquote type="cite"
cite="mid:CAMrKZ998YmsdN5VP-wuzRKfKTLGUkTfN3fZ9svn+X5f8Dk_k+g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">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.
<div><br>
</div>
<div>--Steve</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
MapServer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
</body>
</html>