1
0
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:
DarthSim 2022-08-01 19:58:18 +06:00
parent de57af42dd
commit 339b25dbd9
2 changed files with 3 additions and 3 deletions

View File

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

View File

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