소스 검색

sm watermark position is not supported

DarthSim 7 년 전
부모
커밋
e2b3b6a1b8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      processing_options.go

+ 1 - 1
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])