I do not believe that a GDAL command line tool to perform that function exists.  The task is achievable using GDAL and Numpy masked arrays in python.<div><br></div><div>Perhaps someone else knows of a GDAL tool to perform this functionality though.</div>
<div><br></div><div>J</div><div><div><div><br><div class="gmail_quote">On Sun, Oct 23, 2011 at 12:59 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;">
<div>Hi</div><div>I need to convert all the 255 255 255 into 254 254 254. Is this possible?</div><div>PS. Do appologize for lack of my language. </div><div><br></div><div>Thanks</div><div>J</div><div class="im"><div><br>On 23 Oct 2011, at 15:26, &quot;Jay L. [via <a href="http://OSGeo.org" rel="nofollow" link="external" target="_blank">OSGeo.org</a>]&quot; &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=6922377&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:<br>
<br></div><div></div></div><blockquote type="cite"><div><div class="im">

        Or are you trying to convert only some of the pixels to white?<br><br></div><div class="gmail_quote"><div class="im">On Sun, Oct 23, 2011 at 10:02 AM, Brian Case <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=6922091&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>

</div><blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><div class="im">joolek,<br>
<br>
I noticed you used the word &quot;strip&quot;. Are you trying to remove portions<br>
of the image that are all black or white?<br>
</div><div><div></div><div><div class="im"><br>
<br>
On Sun, 2011-10-23 at 03:01 -0700, joolek wrote:<br>
&gt; Basically - I have an imagery with RGB 0-255, but I would like to strip it to<br>
&gt; 1-254.<br>
&gt; So i want to get rid off two extremes (0 and 255) - is this possible?<br>
&gt; Thank you<br>
&gt; J<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921730.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6921730.html</a><br>


&gt; Sent from the GDAL - Dev mailing list archive at <a href="http://Nabble.com" rel="nofollow" link="external" target="_blank">Nabble.com</a>.<br>
&gt; _______________________________________________<br>
&gt; gdal-dev mailing list<br></div>
&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=6922091&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><div class="im"><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
</div><a href="http://user/SendEmail.jtp?type=node&amp;node=6922091&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br>
<br>_______________________________________________
<br>gdal-dev mailing list
<br><div class="im"><a href="http://user/SendEmail.jtp?type=node&amp;node=6922091&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6922091.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6922091.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from Gdal_translate, question from an amateur., <a rel="nofollow" link="external">click here</a>.
        </div></div></div></blockquote><div class="im">
        
<br><hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6922377.html" target="_blank">Re: Gdal_translate, question from an amateur.</a><br></div><div>
<div></div><div class="h5">
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/GDAL-Dev-f2022644.html" target="_blank">GDAL - Dev mailing list archive</a> at Nabble.com.<br></div></div><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></blockquote></div><br></div></div></div>