<div dir="ltr">Have you considered using a vector mask, for example, a shapefile on your server, or depending on your client, maybe a geoJSON file?</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, May 28, 2025 at 12:29 AM carsten.lockenkoetter--- via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">Hi Even,</span></div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)"> </span></div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">thanks for your response.</span></div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)"> </span></div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)">I just tried it with WEBP, but I'm getting the following error message:</div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"> </div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)">Warning 6: 'WEBP' is an unexpected value for COMPRESS creation option of type string-select.<br>Warning 6: driver GTiff does not support creation option WEBP_LEVEL<br>ERROR 1: Cannot create TIFF file due to missing codec for WEBP.</div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"> </div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)">The docs says: Requires libwebp >= 0.1.4</div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"> </div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)">I'm using the compiled binaries from <a href="https://gisinternals.com/" target="_blank">gisinternals.com</a> (v.3.9.3) and it seems the webp isn't supported with it.</div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)">Do I need to compile the dependency myself and simply copy it into the <code>bin</code> folder?<br>And how do you compile it? I'm new to this topic—sorry about that.</div>
<div style="font-family:verdana;font-size:12px;color:rgb(0,0,0)"> </div>
<div id="m_-6497125219495754004sub-body-container" style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left:2px solid rgb(195,217,229)">
<div style="margin:0px 0px 10px">
<div><strong>Gesendet: </strong>Dienstag, 27. Mai 2025 um 21:43</div>
<div><strong>Von: </strong>"Even Rouault" <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></div>
<div><strong>An: </strong>"<a href="mailto:carsten.lockenkoetter@web.de" target="_blank">carsten.lockenkoetter@web.de</a>" <<a href="mailto:carsten.lockenkoetter@web.de" target="_blank">carsten.lockenkoetter@web.de</a>>, "<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>" <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>></div>
<div><strong>Betreff: </strong>Re: [gdal-dev] Black artifacts with JPEG compression</div>
</div>
<br>
<blockquote>
<div style="margin-top:1em;margin-bottom:1em;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Am I overlooking something in my process?</div>
</blockquote>
No, you're just hitting a fundamental limitation of JPEG compresson<br>
<blockquote>
<div style="margin-top:1em;margin-bottom:1em;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Do you have any ideas on how I can get rid of the artifacts while still keeping disk usage low?</div>
</blockquote>
<p>Use lossy WEBP compression that fully supports transparency.</p>
<pre>-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br></div></div>