mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-01-23 11:14:48 +02:00
Check presets after vips init
This commit is contained in:
parent
4467960b95
commit
1383bf2788
@ -458,10 +458,6 @@ func configure() {
|
||||
conf.GCSEnabled = true
|
||||
}
|
||||
|
||||
if err := checkPresets(conf.Presets); err != nil {
|
||||
logFatal(err.Error())
|
||||
}
|
||||
|
||||
if conf.WatermarkOpacity <= 0 {
|
||||
logFatal("Watermark opacity should be greater than 0")
|
||||
} else if conf.WatermarkOpacity > 1 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user