Skip to content
Permalink
Browse files

Check presets after vips init

  • Loading branch information
DarthSim committed Nov 11, 2019
1 parent 4467960 commit 1383bf2788f59936ffc468ee5db279d62a9ff09d
Showing with 5 additions and 4 deletions.
  1. +0 −4 config.go
  2. +5 −0 main.go
@@ -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 {
@@ -24,6 +24,11 @@ func initialize() {
initDownloading()
initErrorsReporting()
initVips()

if err := checkPresets(conf.Presets); err != nil {
shutdownVips()
logFatal(err.Error())
}
}

func main() {

0 comments on commit 1383bf2

Please sign in to comment.
You can’t perform that action at this time.