diff --git a/autotest/gdrivers/jpegxl.py b/autotest/gdrivers/jpegxl.py index 4983e012b119..55ee592a9cc2 100755 --- a/autotest/gdrivers/jpegxl.py +++ b/autotest/gdrivers/jpegxl.py @@ -127,7 +127,7 @@ def test_jpegxl_rgba_distance(): @pytest.mark.parametrize( - "quality,equivalent_distance", [(100, 0), (90, 1), (10, 12.65)] + "quality,equivalent_distance", [(100, 0), (10, 15.266666666666667)] ) def test_jpegxl_rgba_quality(quality, equivalent_distance): diff --git a/doc/source/drivers/raster/cog.rst b/doc/source/drivers/raster/cog.rst index c7a50573c960..c46bac1f5703 100644 --- a/doc/source/drivers/raster/cog.rst +++ b/doc/source/drivers/raster/cog.rst @@ -125,7 +125,7 @@ General creation options The higher, the smaller file and slower compression time. - .. co:: JXL_DISTANCE - :choices: 0.1-15 + :choices: 0.01-25 :default: 1.0 Distance level for lossy JPEG-XL compression. @@ -137,7 +137,7 @@ General creation options The recommended range is [0.5,3]. - .. co:: JXL_ALPHA_DISTANCE - :choices: -1, 0, 0.1-15 + :choices: -1, 0, 0.01-25 :default: -1 :since: 3.7 diff --git a/doc/source/drivers/raster/gtiff.rst b/doc/source/drivers/raster/gtiff.rst index 62119b32c9df..f86a9fef8546 100644 --- a/doc/source/drivers/raster/gtiff.rst +++ b/doc/source/drivers/raster/gtiff.rst @@ -635,7 +635,7 @@ This driver supports the following creation options: The higher, the smaller file and slower compression time. - .. co:: JXL_DISTANCE - :choices: [0.1-15] + :choices: [0.01-25] :default: 1.0 Distance level for lossy JPEG-XL compression. @@ -647,7 +647,7 @@ This driver supports the following creation options: The recommended range is [0.5,3]. - .. co:: JXL_ALPHA_DISTANCE - :choices: -1,0,[0.1-15] + :choices: -1,0,[0.01-25] :default: -1 :since: 3.7 diff --git a/doc/source/drivers/raster/jpegxl.rst b/doc/source/drivers/raster/jpegxl.rst index f1453995c310..4ad829843a4d 100644 --- a/doc/source/drivers/raster/jpegxl.rst +++ b/doc/source/drivers/raster/jpegxl.rst @@ -108,7 +108,7 @@ The following creation options are available: The higher, the smaller file and slower compression time. - .. co:: DISTANCE - :choices: 0.1-15 + :choices: 0.01-25 :default: 1.0 Distance level for lossy JPEG-XL compression. @@ -120,7 +120,7 @@ The following creation options are available: The recommended range is [0.5,3]. - .. co:: ALPHA_DISTANCE - :choices: -1, 0, 0.1-15 + :choices: -1, 0, 0.01-25 :default: -1.0 :since: 3.7 diff --git a/frmts/gtiff/cogdriver.cpp b/frmts/gtiff/cogdriver.cpp index 69a72ec7488d..ac56ca0d2845 100644 --- a/frmts/gtiff/cogdriver.cpp +++ b/frmts/gtiff/cogdriver.cpp @@ -1505,13 +1505,13 @@ void GDALCOGDriver::InitializeCreationOptionList() "1(fast)-9(slow)' default='5'/>" "