mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-07 11:36:25 +02:00
Fix format_quality in presets
This commit is contained in:
parent
de57af42dd
commit
339b25dbd9
@ -3,6 +3,7 @@
|
||||
## [Unreleased]
|
||||
### Fix
|
||||
- Fix memory bloat in some cases.
|
||||
- Fix `format_quality` usage in presets.
|
||||
|
||||
## [3.7.0] - 2022-07-27
|
||||
### Add
|
||||
|
@ -57,10 +57,9 @@ func parsePreset(presetStr string) error {
|
||||
}
|
||||
|
||||
func ValidatePresets() error {
|
||||
var po ProcessingOptions
|
||||
|
||||
for name, opts := range presets {
|
||||
if err := applyURLOptions(&po, opts); err != nil {
|
||||
po := NewProcessingOptions()
|
||||
if err := applyURLOptions(po, opts); err != nil {
|
||||
return fmt.Errorf("Error in preset `%s`: %s", name, err)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user