sm watermark position is not supported

This commit is contained in:
DarthSim
2018-10-19 17:31:09 +06:00
parent 21e4029a05
commit e2b3b6a1b8

View File

@@ -442,7 +442,7 @@ func applyWatermarkOption(po *processingOptions, args []string) error {
if len(args) > 1 { if len(args) > 1 {
if args[1] == "re" { if args[1] == "re" {
po.Watermark.Replicate = true 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 po.Watermark.Gravity = g
} else { } else {
return fmt.Errorf("Invalid watermark position: %s", args[1]) return fmt.Errorf("Invalid watermark position: %s", args[1])