<div>Hmm... &nbsp;So what the following does :&nbsp;<br><span class="Apple-style-span" style="font-weight: bold; ">gdal_translate -scale 0&nbsp;&lt;a href=&quot;tel:254%200%20255&quot;&gt;254 0 255</a>&nbsp;</span><span class="Apple-style-span" style="font-weight: bold; ">&lt;input&gt; &lt;output&gt;</span></div><div><b><br></b></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Thank you</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">J</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">23 Oct 2011, at 19:20, "Jay L. [via <a href="http://OSGeo.org" target="_top" rel="nofollow" link="external">OSGeo.org</a>]" &lt;<a href="/user/SendEmail.jtp?type=node&node=6922637&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:</span></div><div><br></div><div></div><blockquote type="cite"><div>

        I do not believe that a GDAL command line tool to perform that function exists. &nbsp;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="/user/SendEmail.jtp?type=node&amp;node=6922518&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br><blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
<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.&nbsp;</div><div><br></div><div>Thanks</div><div>J</div><div class="im"><div><br>On 23 Oct 2011, at 15:26, "Jay L. [via <a href="http://OSGeo.org" rel="nofollow" link="external" target="_blank">OSGeo.org</a>]" &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 style="border-left:2px solid #CCCCCC;padding:0 1em" 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 "strip". 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" target="_top">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" rel="nofollow" link="external">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" rel="nofollow" link="external">GDAL - Dev mailing list archive</a> at <a href="http://Nabble.com" target="_top" rel="nofollow" link="external">Nabble.com</a>.<br></div></div><br>_______________________________________________<br>

gdal-dev mailing list<br>
<a href="/user/SendEmail.jtp?type=node&amp;node=6922518&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div></div></div>
<br>_______________________________________________
<br>gdal-dev mailing list
<br><a href="/user/SendEmail.jtp?type=node&amp;node=6922518&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
        
        <br>
        <br>
        <hr noshade="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-tp6921127p6922518.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/Gdal-translate-question-from-an-amateur-tp6921127p6922518.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 href="" target="_top" rel="nofollow" link="external">click here</a>.
        </div></div></blockquote>
        
<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-tp6921127p6922637.html">Re: Gdal_translate, question from an amateur.</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/GDAL-Dev-f2022644.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>