I&#39;m not sure I fully understand the question.  Are you attempting to convert all pixels with RGB value 72, 255, 25 to white?  Or are you trying to scale the image to 8-bit?  <div><br></div><div>Sounds like the former.  In this case -scale is not the way to go.  I&#39;m honestly not sure what is, short of reading each band into a numpy array and then checking individual pixels in each band.  You could then modify the value in each array by position.<br>
<br><div class="gmail_quote">On Sat, Oct 22, 2011 at 7:10 PM, joolek <span dir="ltr">&lt;<a href="mailto:joolek.o@gmail.com">joolek.o@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
I need your expertise... I&#39;ve got number of TIFF&#39;s and ECW&#39;s with RGB<br>
(72,255,25) that I would like to convert to 255,255,255.<br>
<br>
How should the command looks like?.. gdal_translate -scale (not sure about<br>
this) &lt;input&gt; &lt;output&gt;<br>
Thank you guys!!, appreciate any help.<br>
J<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921127.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921127.html</a><br>

Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br></div>