<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div id="signature">WoW. This is really awesome!</div>
<div> </div>
<div>Whish this existed many years ago... I was using GIMP and all that magic tools but without resampling or altering the size of the image, and carefully re-applying geo-tags with the use of listgeo and geotifcp (like mentioned in <a href="https://marc.info/?l=grass-user&m=121788119621237">https://marc.info/?l=grass-user&m=121788119621237</a>) :-).</div>
<div> </div>
<div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
</div>
<p id="reply-intro">On 2022-01-13 23:19, Matt.Wilkie@yukon.ca wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div> </div>
</blockquote>
</blockquote>
<style type="text/css">@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
#replybody1 p.v1MsoNormal, #replybody1 li.v1MsoNormal, #replybody1 div.v1MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
#replybody1 a:link, #replybody1 span.v1MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
#replybody1 a:visited, #replybody1 span.v1MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
#replybody1 pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
#replybody1 p.v1MsoListParagraph, #replybody1 li.v1MsoListParagraph, #replybody1 div.v1MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
#replybody1 p.v1msonormal0, #replybody1 li.v1msonormal0, #replybody1 div.v1msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
#replybody1 span.v1HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
mso-fareast-language:EN-CA;}
#replybody1 span.v1EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
#replybody1 span.v1EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
#replybody1 span.v1EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
#replybody1 .v1MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
#replybody1 div.v1WordSection1
{page:WordSection1;}
@list l0
{mso-list-id:670721841;
mso-list-type:hybrid;
mso-list-template-ids:-2090981088 -1240939682 269025283 269025285 269025281 269025283 269025285 269025281 269025283 269025285;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
#replybody1 ol
{margin-bottom:0cm;}
#replybody1 ul
{margin-bottom:0cm;}</style>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div lang="EN-CA">
<div class="v1WordSection1">
<p class="v1MsoNormal" style="margin-left: 36.0pt;"><em><span style="font-size: 11.0pt; mso-fareast-language: EN-US;">I discovered that starting with v2.10.24 Gimp knows about and keeps geotiff tags intact.[0] This means we can use tools like Magic Wand fuzzy select and a host of other tools to quickly fix a host of image issues that are difficult to address using command line tools and/or code. </span></em></p>
<p class="v1MsoNormal"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"> </span></p>
<p class="v1MsoNormal"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">It gets better: Gimp reads *.msk files without any fuss. This means drastically reduced memory requirements for quickly making simple edits only to the mask layer. So a person can:</span></p>
<p class="v1MsoNormal"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"> </span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">take a large multiband band geotiff with a mask side car file, squash the 3+ bands into 1 band</span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">open the original .msk file in Gimp</span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">drag and drop the squashed 1 band file on top the Gimp session</span></p>
<p class="v1MsoListParagraph" style="margin-left: 72.0pt; text-indent: -18.0pt; mso-list: l0 level2 lfo1;"><span style="font-size: 11.0pt; font-family: 'Courier New'; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">o<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">selecting import tif as a Layer</span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">Lock the imported layer, set to 50% transparent (or whatever). This is the Visual Guide layer.</span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><strong><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">Paint as thou wilt on the base mask layer</span></strong><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"> (Black is Nodata, White is Data)</span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">Delete the visual guide layer</span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">Export the base mask layer</span></p>
<p class="v1MsoListParagraph" style="margin-left: 72.0pt; text-indent: -18.0pt; mso-list: l0 level2 lfo1;"><span style="font-size: 11.0pt; font-family: 'Courier New'; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">o<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">Select tiff File Type</span></p>
<p class="v1MsoListParagraph" style="margin-left: 108.0pt; text-indent: -18.0pt; mso-list: l0 level3 lfo1;"><span style="font-size: 11.0pt; font-family: Wingdings; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">§<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">use Deflate compression</span></p>
<p class="v1MsoListParagraph" style="margin-left: 108.0pt; text-indent: -18.0pt; mso-list: l0 level3 lfo1;"><span style="font-size: 11.0pt; font-family: Wingdings; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">§<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">keep metadata (Geotiff will be disabled, that's okay)</span></p>
<p class="v1MsoListParagraph" style="margin-left: 108.0pt; text-indent: -18.0pt; mso-list: l0 level3 lfo1;"><span style="font-size: 11.0pt; font-family: Wingdings; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">§<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">use "input-rgb-geotiff.tif.msk" as file name</span></p>
<p class="v1MsoListParagraph" style="text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';"> </span></span></span><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">DONE!</span></p>
<p class="v1MsoNormal"><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;"> </span></p>
<p class="v1MsoNormal"><em><span style="font-size: 11.0pt; color: #1f497d; mso-fareast-language: EN-US;">(this is so awesome. :)</span></em></p>
<div>
<p class="v1MsoNormal"><span style="color: #1f497d;"> </span></p>
<p class="v1MsoNormal"><span style="color: #1f497d;">-Matt</span><span style="color: #1f497d;"></span></p>
</div>
</div>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />gdal-dev mailing list<br /><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br /><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>
</blockquote>
</body></html>