diff --git a/CHANGELOG.md b/CHANGELOG.md index 9baf37cf..9755de0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +### Change +- Change maximum and default values of `IMGPROXY_AVIF_SPEED` to `9`. ## [3.18.0] - 2023-05-31 ### Add diff --git a/config/config.go b/config/config.go index 073d186c..1397546d 100644 --- a/config/config.go +++ b/config/config.go @@ -242,7 +242,7 @@ func Reset() { PngInterlaced = false PngQuantize = false PngQuantizationColors = 256 - AvifSpeed = 8 + AvifSpeed = 9 Quality = 80 FormatQuality = map[imagetype.Type]int{imagetype.AVIF: 65} StripMetadata = true @@ -658,8 +658,8 @@ func Configure() error { if AvifSpeed < 0 { return fmt.Errorf("Avif speed should be greater than 0, now - %d\n", AvifSpeed) - } else if AvifSpeed > 8 { - return fmt.Errorf("Avif speed can't be greater than 8, now - %d\n", AvifSpeed) + } else if AvifSpeed > 9 { + return fmt.Errorf("Avif speed can't be greater than 9, now - %d\n", AvifSpeed) } if Quality <= 0 { diff --git a/docs/configuration.md b/docs/configuration.md index 9515e5f4..c5c8e3c6 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -176,7 +176,7 @@ When cookie forwarding is activated, by default, imgproxy assumes the scope of t ### Advanced AVIF compression -* `IMGPROXY_AVIF_SPEED`: controls the CPU effort spent improving compression. The lowest speed is at 0 and the fastest is at 8. Default: `8` +* `IMGPROXY_AVIF_SPEED`: controls the CPU effort spent improving compression. The lowest speed is at 0 and the fastest is at 9. Default: `9` ### Autoquality