Update maximum and default AVIF speed

This commit is contained in:
DarthSim
2023-06-29 20:05:24 +03:00
parent 56b294cbd3
commit 9175c66fee
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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 {

View File

@@ -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