mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
sm watermark position is not supported
This commit is contained in:
@@ -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])
|
||||
|
Reference in New Issue
Block a user