mirror of
https://github.com/langgenius/dify-plugins.git
synced 2026-07-22 01:55:36 -04:00
[PR #1925] [MERGED] New: add a new plugin file_watermark-0.0.1.difypkg【Local File Watermarking Tool: Supports adding secure watermarks to images, videos, PDF, DOCX, PPTX, XLSX files (including text watermarks and logo watermarks).】 #1960
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugins/pull/1925
Author: @sawyer-shi
Created: 1/20/2026
Status: ✅ Merged
Merged: 1/22/2026
Merged by: @crazywoola
Base:
main← Head:main-file_watermark-0.0.1.difypkg📝 Commits (4)
ea18990update: for plugin file_encrypt_decrypt-0.0.2.difypkg【update the description】a30eaedupdate: for plugin file_encrypt_decrypt-0.0.2.difypkg【update the description】2c083d7update: for plugin file_encrypt_decrypt-0.0.2.difypkg【update the description】60a0476New: add a new plugin file_watermark-0.0.1.difypkg【Local File Watermarking Tool: Supports adding secure watermarks to images, videos, PDF, DOCX, PPTX, XLSX files (including text watermarks and logo watermarks).】📊 Changes
1 file changed (+0 additions, -0 deletions)
View changed files
➕
sawyer-shi/file_watermark/file_watermark-0.0.1.difypkg(+0 -0)📄 Description
File Watermark
A powerful Dify plugin providing comprehensive local file watermarking capabilities. All watermarking operations are performed entirely on your local machine without requiring any external services, API keys, or internet connection, ensuring maximum data security and privacy. Supports adding text and icon watermarks to PDF, Word, PPT, Excel, Image, and Video files with customizable parameters including position, opacity, color, font size, scale, and alignment.
Version Information
Version History
Quick Start
Key Features
Core Features
Image Watermarking
Video Watermarking
PDF Document Watermarking
Word Document Watermarking
PowerPoint Presentation Watermarking
Excel Workbook Watermarking
Technical Advantages
Requirements
Installation & Configuration
Install the required dependencies:
Install the plugin in your Dify environment following the standard plugin installation process
Usage
The plugin provides the following tools for file watermarking:
Image Watermarking Tools
1. Add Text Watermark (img_add_text_watermark)
Add customizable text watermarks to images with position, opacity, color, and font size controls.
image_file: The original image file to add watermark (required)text: The text content of the watermark (required)position: The position of the watermark (optional, default: tile)center: Center of the imagecorners: All four cornersbr: Bottom rightbl: Bottom lefttr: Top righttl: Top lefttile: Tile across the entire image (default)opacity: The opacity of the watermark (optional, default: 40, range: 0-255)color: The color of the watermark (optional, default: #808080)Gray: #808080Red: #FF0000Green: #00FF00Blue: #0000FFYellow: #FFFF00font_size: The font size of the watermark (optional, default: 30, range: 1+)2. Add Icon Watermark (img_add_icon_watermark)
Add icon or logo watermarks to images with position, opacity, and scale controls.
image_file: The base image file to add watermark (required)icon_file: The logo image file for watermark (optional, recommended: png or jpg)icon_url: The URL of logo image for watermark (optional)scale: The scale of the logo as percentage of base image width (optional, default: 10, range: 1-100)position: The position of the watermark (optional, default: bottom_right)center: Center of the imagetop_left: Top left cornerbottom_right: Bottom right corner (default)opacity: The opacity of the watermark (optional, default: 100, range: 0-255)Video Watermarking Tools
3. Add Text Watermark to Video (video_add_text_watermark)
Add customizable text watermarks to videos with position, opacity, color, and font size controls.
video_file: The video file to add watermark (required)text: The text content of the watermark (required)position: The position of the watermark (optional, default: bottom_right)center: Center of the videotop_left: Top left cornertop_right: Top right cornerbottom_left: Bottom left cornerbottom_right: Bottom right corner (default)opacity: The opacity of the watermark (optional, default: 0.5, range: 0-1)color: The color of the watermark in hex format (optional, default: #FFFFFF)font_size: The font size of the watermark (optional, default: 40, range: 1+)4. Add Icon Watermark to Video (video_add_icon_watermark)
Add icon or logo watermarks to videos with position, opacity, and scale controls.
video_file: The video file to add watermark (required)icon_file: The logo image file for watermark (optional, recommended: PNG format)icon_url: The URL of the logo image for watermark (optional)scale: The scale of the logo as percentage of video height (optional, default: 15, range: 1-100)position: The position of the watermark (optional, default: bottom_right)center: Center of the videotop_left: Top left cornertop_right: Top right cornerbottom_left: Bottom left cornerbottom_right: Bottom right corner (default)opacity: The opacity of the watermark (optional, default: 0.8, range: 0-1)PDF Document Watermarking Tools
5. Add Text Watermark to PDF (pdf_add_text_watermark)
Add tiled text watermarks to PDF documents with opacity and font size controls.
doc_file: The PDF file to add watermark (required)text_content: The text content of the watermark, max 100 characters (required)opacity: The opacity of the watermark (optional, default: 0.1, range: 0-1)font_size: The font size of the watermark (optional, default: 20, 0 for auto-size)6. Add Icon Watermark to PDF (pdf_add_icon_watermark)
Add icon watermarks to PDF documents with opacity and position controls.
doc_file: The PDF file to add watermark (required)icon_file: The logo image file for watermark (optional, recommended: PNG format)icon_url: The URL of the logo image for watermark (optional)opacity: The opacity of the watermark (optional, default: 0.1, range: 0-1)position: The position of the watermark (optional, default: top-right)center: Center of the pagetile: Tile across the pagetop-left: Top left cornertop-right: Top right corner (default)bottom-left: Bottom left cornerbottom-right: Bottom right cornerWord Document Watermarking Tools
7. Add Text Watermark to Word (word_add_text_watermark)
Add text watermarks to Word documents with opacity, font size, position, and alignment controls.
doc_file: The Word file to add watermark (required)text_content: The text content of the watermark, max 100 characters (required)opacity: The opacity of the watermark (optional, default: 0.5, range: 0-1)font_size: The font size of the watermark (optional, default: 20, 0 for auto-size)position: The position of the watermark (optional, default: Header)center: Center of the pageheader: Header (default)footer: Footeralignment: The alignment of the watermark (optional, default: right)left: Left alignmentcenter: Center alignmentright: Right alignment (default)8. Add Icon Watermark to Word (word_add_icon_watermark)
Add icon watermarks to Word documents with opacity, position, and alignment controls.
doc_file: The Word file to add watermark (required)icon_file: The logo image file for watermark (optional, recommended: PNG format)icon_url: The URL of the logo image for watermark (optional)opacity: The opacity of the watermark (optional, default: 0.5, range: 0-1)position: The position of the watermark (optional, default: center)center: Center of the page (default)header: Headerfooter: Footeralignment: The alignment of the watermark (optional, default: right)left: Left alignmentcenter: Center alignmentright: Right alignment (default)PowerPoint Presentation Watermarking Tools
9. Add Text Watermark to PowerPoint (ppt_add_text_watermark)
Add text watermarks to PowerPoint presentations with opacity, font size, and position controls.
doc_file: The PowerPoint file to add watermark (required)text_content: The text content of the watermark, max 100 characters (required)opacity: The opacity of the watermark (optional, default: 0.3, range: 0-1)font_size: The font size of the watermark (optional, default: 36, 0 for auto-size)position: The position of the watermark (optional, default: tile)tile: Tile across the slide (default)center: Center of the slidetop-left: Top left cornertop-right: Top right cornerbottom-left: Bottom left cornerbottom-right: Bottom right corner10. Add Icon Watermark to PowerPoint (ppt_add_icon_watermark)
Add icon watermarks to PowerPoint presentations with opacity, scale, and position controls.
doc_file: The PowerPoint file to add watermark (required)icon_file: The logo image file for watermark (optional, recommended: PNG format)icon_url: The URL of the logo image for watermark (optional)opacity: The opacity of the watermark (optional, default: 0.1, range: 0-1)scale: The scaling factor for the icon size (optional, default: 0.6, range: 0.1+)position: The position of the watermark (optional, default: top-right)center: Center of the slidetop-left: Top left cornertop-right: Top right corner (default)bottom-left: Bottom left cornerbottom-right: Bottom right cornerExcel Workbook Watermarking Tools
11. Add Text Watermark to Excel (excel_add_text_watermark)
Add text watermarks to Excel workbooks with opacity, font size, and position controls.
doc_file: The Excel file to add watermark (required)text_content: The text content of the watermark, max 100 characters (required)opacity: The opacity of the watermark (optional, default: 0.1, range: 0-1)font_size: The font size of the watermark (optional, default: 40, 0 for auto-size)watermark_position: Position of the watermark relative to data (optional, default: on_data)on_data: Watermark placed on top of data (default)below_data: Watermark placed below data12. Add Icon Watermark to Excel (excel_add_icon_watermark)
Add icon watermarks to Excel workbooks with opacity and position controls.
doc_file: The Excel file to add watermark (required)icon_file: The logo image file for watermark (optional, recommended: PNG format)icon_url: The URL of the logo image for watermark (optional)opacity: The opacity of the watermark (optional, default: 0.1, range: 0-1)watermark_position: Position of the watermark relative to data (optional, default: on_data)on_data: Watermark placed on top of data (default)below_data: Watermark placed below dataNotes
Developer Information
https://github.com/sawyer-shihttps://github.com/sawyer-shi/dify-plugins-file_watermarkLicense Notice
This project is licensed under the Apache License 2.0. See the LICENSE file for the full license text.
Ready to protect your files with watermarks?
Plugin Submission Form
1. Metadata
2. Submission Type
3. Description
4. Checklist
5. Documentation Checklist
Please confirm that your plugin README includes all necessary information:
6. Privacy Protection Information
Based on Dify Plugin Privacy Protection Guidelines:
Data Collection
Privacy Policy
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.