<div dir="ltr">You might need to compile with gdal's internal libtiff so that webp-in-tif support is enabled (i.e. the system libtiff might not have webp support). Also note you should probably be adding "-co TILED=YES" to your translate command.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 3:07 PM Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</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-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi,</p>
<p>I am using a self-compiled GDAL 3.1.2 version and try to create a GTIFF file with COMPRESS=WEBP</p>
<p>libwebp-devel and other webp automatic dependencies are installed on this ubuntu 18.04 machine. I could also compile against libwebp</p>
<p>However, when running gdal_translate like</p>
<p><span>gdal_translate -b 1 -b 2 -b 3 -b mask -of GTIFF -co COMPRESS=WEBP -co PHOTOMETRIC=YCBCR -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co BIGTIFF=YES -co NUM_THREADS=4 -a_srs EPSG:2056 -projwin 2599700 1226200 2602200 1224650 ch.swisstopo.orthofoto_2018.rgb.vrt test_webp_ycbcr.tif<br></span></p>
<p>I get the following error output:</p>
<p><span>Input file size is 530000, 480000 <br>Warning 6: 'WEBP' is an unexpected value for COMPRESS creation option of type string-select. <br>ERROR 1: Cannot create TIFF file due to missing codec for WEBP.<br><br></span></p>
<p><span>Any idea what might be missing in my installation - where do I get this missing codec for WEBP?</span></p>
<p><span>Thanks,</span></p>
<p><span>Andreas</span></p>
<p><br></p>

</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></blockquote></div>