From e2b3b6a1b8c99735e78af6d428c84ee51322ff95 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Fri, 19 Oct 2018 17:31:09 +0600 Subject: [PATCH] sm watermark position is not supported --- processing_options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing_options.go b/processing_options.go index ab69205e..ea5918ba 100644 --- a/processing_options.go +++ b/processing_options.go @@ -442,7 +442,7 @@ func applyWatermarkOption(po *processingOptions, args []string) error { if len(args) > 1 { if args[1] == "re" { po.Watermark.Replicate = true - } else if g, ok := gravityTypes[args[1]]; ok && g != gravityFocusPoint { + } else if g, ok := gravityTypes[args[1]]; ok && g != gravityFocusPoint && g != gravitySmart { po.Watermark.Gravity = g } else { return fmt.Errorf("Invalid watermark position: %s", args[1])