Skip to content
Snippets Groups Projects
Commit ec3938f1 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improved imagick error

parent 29d0648e
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,8 @@ func processImage(config *Config, client *redis.Client, value string) {
})
}
wand.Clear()
wandLinear.Clear()
wand.Destroy()
wandLinear.Destroy()
}
func main() {
......
......@@ -91,7 +91,7 @@ func resize(wand *imagick.MagickWand, wandLinear *imagick.MagickWand, size Size,
err = mw.WriteImage(target)
mw.Clear()
mw.Destroy()
return err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment