Class WatermarkConfig

java.lang.Object
com.bytedesk.core.upload.watermark.WatermarkConfig

@Component @ConfigurationProperties(prefix="bytedesk.watermark") public class WatermarkConfig extends Object
水印配置
  • Field Details

    • enabled

      private boolean enabled
      是否启用水印
    • text

      private String text
      水印文字
    • position

      水印位置
    • fontSize

      private int fontSize
      字体大小
    • fontName

      private String fontName
      字体名称
    • color

      private String color
      水印颜色 (RGBA格式,例如: "255,255,255,128")
    • opacity

      private float opacity
      透明度 (0.0-1.0)
    • margin

      private int margin
      边距
    • imageOnly

      private boolean imageOnly
      是否只对图片文件添加水印
    • minImageSize

      private int minImageSize
      最小图片尺寸(像素),小于此尺寸的图片不添加水印
    • maxImageSize

      private int maxImageSize
      最大图片尺寸(像素),大于此尺寸的图片不添加水印
  • Constructor Details

    • WatermarkConfig

      public WatermarkConfig()