[gdal-dev] gdal_translate receiving "Warning 6: driver GTiff does not support creation option WEBP_LOSSLESS"

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Thu Jan 14 14:27:57 PST 2021


Hi,

I would also have a try by actually using -co WEBP_LOSSLESS=True even by the
error message it is perhaps automatically applied.

-Jukka Rahkonen-


Marty J. Sullivan wrote
> 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 at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list