mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-29 04:53:05 +02:00
Update maximum and default AVIF speed
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Change
|
||||||
|
- Change maximum and default values of `IMGPROXY_AVIF_SPEED` to `9`.
|
||||||
|
|
||||||
## [3.18.0] - 2023-05-31
|
## [3.18.0] - 2023-05-31
|
||||||
### Add
|
### Add
|
||||||
|
@@ -242,7 +242,7 @@ func Reset() {
|
|||||||
PngInterlaced = false
|
PngInterlaced = false
|
||||||
PngQuantize = false
|
PngQuantize = false
|
||||||
PngQuantizationColors = 256
|
PngQuantizationColors = 256
|
||||||
AvifSpeed = 8
|
AvifSpeed = 9
|
||||||
Quality = 80
|
Quality = 80
|
||||||
FormatQuality = map[imagetype.Type]int{imagetype.AVIF: 65}
|
FormatQuality = map[imagetype.Type]int{imagetype.AVIF: 65}
|
||||||
StripMetadata = true
|
StripMetadata = true
|
||||||
@@ -658,8 +658,8 @@ func Configure() error {
|
|||||||
|
|
||||||
if AvifSpeed < 0 {
|
if AvifSpeed < 0 {
|
||||||
return fmt.Errorf("Avif speed should be greater than 0, now - %d\n", AvifSpeed)
|
return fmt.Errorf("Avif speed should be greater than 0, now - %d\n", AvifSpeed)
|
||||||
} else if AvifSpeed > 8 {
|
} else if AvifSpeed > 9 {
|
||||||
return fmt.Errorf("Avif speed can't be greater than 8, now - %d\n", AvifSpeed)
|
return fmt.Errorf("Avif speed can't be greater than 9, now - %d\n", AvifSpeed)
|
||||||
}
|
}
|
||||||
|
|
||||||
if Quality <= 0 {
|
if Quality <= 0 {
|
||||||
|
@@ -176,7 +176,7 @@ When cookie forwarding is activated, by default, imgproxy assumes the scope of t
|
|||||||
|
|
||||||
### Advanced AVIF compression
|
### 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
|
### Autoquality
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user