ComfyUI Extension
ComfyUI-SmartImageTools
NODES: Various nodes for image manipulation
slvslvslv/ComfyUI-SmartImageTools
Nodes30
On cloudLocal install
CategorySmartImageTools, Smart Image Tools
Stars1
Updated4 months ago
Nodes (30)
Smart Background Fill
SmartImageTools
Smart Remove Background
SmartImageTools
Smart Color Fill Mask
SmartImageTools
Smart Color Match
SmartImageTools
Smart Draw Points
SmartImageTools
Smart Fill Transparent Holes
SmartImageTools
Smart Generate Image
SmartImageTools
Smart Get Mask
SmartImageTools
Smart Gradient Deformation
SmartImageTools
Smart Image Crop
SmartImageTools
Smart Image Padding
SmartImageTools
Smart Image Palette Convert
SmartImageTools
Smart Image Palette Create
SmartImageTools
Smart Image Palette Extract
SmartImageTools
Smart Image Point
SmartImageTools
Smart Image Preview Scaled
SmartImageTools
Smart Image Region
SmartImageTools
Smart Images Processor
SmartImageTools
Smart Load GIF Image
SmartImageTools
Smart Load Video
Smart Image Tools
Smart Point
SmartImageTools
Smart Point Set
SmartImageTools
Smart Point Set Merge
SmartImageTools
Smart Preview Palette
SmartImageTools
Smart Progressive Scale Image
SmartImageTools
Smart Save Animated Image
SmartImageTools
Smart Save PNG
SmartImageTools
Smart Semi-Transparence Remove
SmartImageTools
Smart Video Preview Scaled
SmartNodes/Image
Smart Video Preview Scaled Masked
SmartNodes/Image
Readme
ComfyUI-SmartImageTools
A collection of smart image processing tools for ComfyUI, focused on advanced image manipulation techniques.
Nodes
SmartImagePaletteConvert
Converts an image to use an indexed color palette with optional dithering. Similar to Photoshop's indexed color conversion functionality.
Features:
- Generate an optimal color palette from the input image using K-means clustering in LAB color space
- Specify the number of colors in the palette (2-256)
- Apply Floyd-Steinberg dithering with adjustable intensity
- Use a reference image to extract a palette (optional)
- Preserves transparency
Inputs:
- image: The input image to process
- num_colors: Number of colors in the palette (2-256)
- dithering_amount: Amount of dithering to apply (0.0-1.0)
- reference_image (optional): An image to extract the color palette from
Outputs:
- IMAGE: The processed image with the indexed color palette applied
Installation
- Clone this repository into your ComfyUI custom_nodes folder:
cd ComfyUI/custom_nodes/
git clone https://github.com/yourusername/ComfyUI-SmartImageTools.git
- Install the required dependencies:
pip install -r ComfyUI-SmartImageTools/requirements.txt
- Restart ComfyUI
Requirements
- scikit-learn
- scikit-image
- numpy
- Pillow
License
MIT