New: add a new plugin image_toolbox-0.0.1.difypkg【Supports image compression, adding watermarks (text and icon watermarks), adjusting image dimensions (cropping and expanding images), and converting image formats (jpg, png, webp, bmp, tiff, gif, ico, svg).】 #1855
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.
Image Toolbox
A powerful Dify plugin providing comprehensive local image processing capabilities. All image operations are executed entirely on your local machine without any external services, API keys, or internet connections, ensuring maximum data security and privacy. Supports adding watermarks (text and icon), resizing images (crop and pad), and converting between multiple image formats (JPG, PNG, WEBP, BMP, TIFF, GIF, ICO, SVG).
Version Information
Version History
Quick Start
Core Features
Core Functions
1. Image Watermarking
Text Watermark
Icon Watermark
2. Image Resizing
Image Resize Crop (object-fit: cover)
Image Resize Pad (object-fit: contain)
3. Image Compression
Compress images to reduce file size while maintaining acceptable quality.
4. Image Format Conversion
Supports conversion between multiple image formats:
Technical Advantages
Requirements
Installation & Configuration
Install required dependencies:
Install the plugin in your Dify environment following the standard plugin installation process
Usage
The plugin provides the following tools:
1. Image Compress (image_compress)
Compress images to reduce file size.
image_file: The original image file to compress (required)quality: Compression quality (optional, default: 80, range: 1-100)2. Add Text Watermark (add_text_watermark)
Add customizable text watermarks to images.
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: Image centercorners: Four cornersbr: Bottom rightbl: Bottom lefttr: Top righttl: Top lefttile: Full-screen tiling (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+)3. Add Icon Watermark (add_icon_watermark)
Add icon or logo watermarks to images.
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 the logo image for watermark (optional)scale: The scale of the logo (percentage of base image width) (optional, default: 20, range: 1-100)position: The position of the watermark (optional, default: bottom_right)center: Image centertop_left: Top left cornerbottom_right: Bottom right corner (default)opacity: The opacity of the watermark (optional, default: 200, range: 0-255)4. Image Resize Crop (image_resize_crop)
Resize image using crop strategy (object-fit: cover).
image_file: The original image file to resize (required)preset_size: Standard photo sizes based on 300 DPI (optional, default: none)none: No preset1_inch: 1 inch (25mm x 35mm) - 295x413 pixels1_inch_large: Large 1 inch (33mm x 48mm) - 390x567 pixels2_inch: 2 inch (35mm x 49mm) - 413x579 pixels2_inch_small: Small 2 inch (35mm x 45mm) - 413x531 pixelscustom_width: Custom width in pixels (required when preset_size is none)custom_height: Custom height in pixels (required when preset_size is none)5. Image Resize Pad (image_resize_pad)
Resize image using pad strategy (object-fit: contain).
image_file: The original image file to resize (required)preset_size: Standard photo sizes based on 300 DPI (optional, default: none)none: No preset1_inch: 1 inch (25mm x 35mm) - 295x413 pixels1_inch_large: Large 1 inch (33mm x 48mm) - 390x567 pixels2_inch: 2 inch (35mm x 49mm) - 413x579 pixels2_inch_small: Small 2 inch (35mm x 45mm) - 413x531 pixelscustom_width: Custom width in pixels (required when preset_size is none)custom_height: Custom height in pixels (required when preset_size is none)pad_color: Background color for padding (optional, default: #FFFFFF)6. Convert to JPG (convert_to_jpg)
Convert image to JPG format (.jpg extension).
image_file: The original image file to convert (required)7. Convert to JPEG (convert_to_jpeg)
Convert image to JPEG format (.jpeg extension).
image_file: The original image file to convert (required)8. Convert to BMP (convert_to_bmp)
Convert image to BMP format.
image_file: The original image file to convert (required)9. Convert to PNG (convert_to_png)
Convert image to PNG format.
image_file: The original image file to convert (required)10. Convert to WEBP (convert_to_webp)
Convert image to WEBP format.
image_file: The original image file to convert (required)11. Convert to TIFF (convert_to_tiff)
Convert image to TIFF format.
image_file: The original image file to convert (required)12. Convert to GIF (convert_to_gif)
Convert image to GIF format.
image_file: The original image file to convert (required)13. Convert to ICO (convert_to_ico)
Convert image to ICO format.
image_file: The original image file to convert (required)14. Convert to SVG (convert_to_svg)
Convert image to SVG format.
image_file: The original image file to convert (required)Notes
Developer Information
https://github.com/sawyer-shihttps://github.com/sawyer-shi/dify-plugins-image_toolboxLicense Statement
This project is licensed under the Apache License 2.0. The full license text is available in the LICENSE file.
Ready to process your images?
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