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).】 #1925
+0
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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