Thanks for the suggestion. I did actually try to create a plain GTiff and tried with the WEBP_LOSSLESS=TRUE and received the same warning.
It is strange because it does seem to create a WEBP compressed image (I think), gdalinfo seems to suggest that it is, so maybe I should just ignore the warning? It just seems like an odd error to receive if WEBP_LOSSLESS is in fact working. Marty On 1/14/21, 5:28 PM, "gdal-dev on behalf of jratike80" <[email protected] on behalf of [email protected]> wrote: 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 > [email protected] > https://lists.osgeo.org/mailman/listinfo/gdal-dev -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
