Hello,

I am attempting to create a COG format GeoTIFF with WEBP_LOSSLESS compression 
using GDAL.

I have compiled GDAL 3.2.1 from source with libwebp 0.4.2 installed from Debian 
Buster repos (I’ve also tried with libwebp v1.1.0 installed from source, no 
difference). When I run the ./configure script before compiling, WEBP support 
is listed as “Yes”

When I try to create a COG with gdal_translate, and setting QUALITY=100, GDAL 
returns “Warning 6: driver GTiff does not support creation option WEBP_LOSSLESS”

I would expect that WEBP_LOSSLESS would work because the documentation for the 
GTiff driver states “WEBP_LOSSLESS=True/False: (GDAL >= 2.4.0 and libwebp >= 
0.1.4): By default, lossy compression is used. If set to True, lossless 
compression will be used.”

Here is the command I am running, it works fine when running with another 
compression (or choosing QUALITY=99 for WEBP)

gdal_translate -of COG -co COMPRESS=WEBP -co QUALITY=100 -co 
NUM_THREADS=ALL_CPUS -co RESAMPLING=NEAREST -co OVERVIEW_RESAMPLING=NEAREST -co 
WARP_RESAMPLING=NEAREST -co OVERVIEWS=AUTO -co TILING_SCHEME=CUSTOM -co 
ZOOM_LEVEL_STRATEGY=UPPER input.tif output.tif

Thanks for any guidance on getting WEBP_LOSSLESS to work!

Marty Sullivan
Cornell University
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to