Add watermark to image
Add watermark to image
Add watermark to image is used to automatically overlay watermarks on uploaded images and supports batch watermarking for existing image libraries.
Entry Path
Top menu of the background → 'Function' → 'System Function' → 'Image watermark'. Actual address:/system/plugin/system/watermarkrequires administrative privileges(canAdmin)
Function description
The page provides a watermark switch and an entry for 'Batch watermarking images in the image library'. After enabling, newly uploaded images will automatically add watermarks.
Screenshot of the interface

Setting item description
| Setting items | function | Value / Default | How to select / Fill in suggestions | Impact / Note |
|---|---|---|---|---|
| Enable watermark | Master switch | radio: Off (default) / On [实测] | Enable when there are many original images | Fields below will not be displayed after disabling |
| Watermark type | Image watermark or text watermark | Radio: 0 image / 1 text [source code] | Use image if there is a logo, otherwise use text | Only display after enabling |
| Watermark Image | Image with Watermark | Upload, supports jpg/png/gif/webp/bmp [source code] | Upload semi-transparent PNG for better effect | Display when type is image |
| Watermark text / color / font | Text watermark content | Text / color /.ttfFont upload [source code] |
Short text, font consistent with the main site style | Text Display When Type Is Text |
| Watermark position | Watermark Placement Location | Radio 5 options: 5 Centered / 1 Top Left / 3 Top Right / 7 Bottom Left / 9 Bottom Right [Source Code] | Most commonly used at the bottom right corner | — |
| Watermark Size | Watermark Font Size | Slider 5-50, Default 20 [Source Code] | Default is fine | Too large to cover the main subject of the picture |
| Watermark opacity | Watermark opacity | Slider 10-100, Range 1-100 [Source Code] | Set 50-80 for a more natural look | Too low to see clearly, too high to affect reading |
| Minimum size to add | No watermark if smaller than this size | Number (pixels), no default [Source code] | Settings needed for small image protection | Skip only when both length and width are smaller than this value |
Detailed explanation of configuration items
Watermark type联动
Condition for occurrenceOnly when the field 'Whether to enable watermark' is turned on, the entire block will be displayed [Source code].
When type = image, display watermark image upload; when type = text, display text, color, and font upload. Note to fill in the corresponding fields when switching types.
Batch add watermark
Condition for occurrenceAlways display [source code].
Batch add watermarks to the existing image library, images that have already been added with watermarks will not be added again [source code].
Consequences of filling in incorrectly: Batch processing will modify the original image, it is recommended to back up the image resources before operation.
Operation steps
- Enter "Function → System Function → Add Image Watermark".
- Configure watermark image or text with parameters.
- Set "Whether to enable watermark" to enabled.
- Click 'Submit' to save.
- When processing existing images, click Batch Add Watermark.
Operation steps
- Enter "Function → System Function → Add Image Watermark".
- Configure watermark image and parameters (according to the page form).
- Set "Whether to enable watermark" to enabled.
- Click 'Submit' to save.
- When processing existing images, click Batch Add Watermark.
Applicable scenarios and suggestions
- Sites with a large number of original images can enable watermarks to protect copyright.
- The position and opacity of the watermark should be coordinated with the image content to avoid obscuring the main subject.
Points to note
- Enable this after only for new uploaded images, existing images need to be processed in bulk.
- Batch watermarking will modify the original image, it is recommended to back up the image resources before operation.