Extensions/ComfyUI-SmartImageTools
ComfyUI Extension

ComfyUI-SmartImageTools

NODES: Various nodes for image manipulation

By slvslvslv·Created about a year ago·Updated 22 days ago· 2
slvslvslv/ComfyUI-SmartImageTools
Nodes30
On cloudLocal install
CategorySmartImageTools, Smart Image Tools
Stars2
Updated22 days ago

Nodes (30)

Smart Background Fill

Flatten your cutout onto a color in one node

SmartImageTools
Smart Remove Background

Cut out a background without loading a single AI model

SmartImageTools
Smart Color Fill Mask

Paint any hex color into a mask region

SmartImageTools
Smart Color Match

Make your batch match the reference color — without re-sampling

SmartImageTools
Smart Draw Points

Draw your keypoints so you can actually see them

SmartImageTools
Smart Fill Transparent Holes

Plug the holes a background removal leaves behind

SmartImageTools
Smart Generate Image

A solid-color generator, and why you'll keep reaching for it

SmartImageTools
Smart Get Mask

Turn alpha into a mask — mind the inversion

SmartImageTools
Smart Gradient Deformation

Warp your image with a gradient you can actually see

SmartImageTools
Smart Image Crop

Stop resampling the whole frame to fix one region

SmartImageTools
Smart Image Padding

Padding that doesn't fight you (or your transparency)

SmartImageTools
Smart Image Palette Convert

Photoshop-style indexed color, local and free

SmartImageTools
Smart Image Palette Create

Build a palette by hand, right in the graph

SmartImageTools
Smart Image Palette Extract

Every unique color in your image, as a strip

SmartImageTools
Smart Image Point

Click points on your image; feed them to the graph

SmartImageTools
Smart Image Preview Scaled

A preview that scales — and shows transparency honestly

SmartImageTools
Smart Image Region

Drag a rectangle or polygon, get a mask and a bbox

SmartImageTools
Smart Images Processor

Trim frames and fix the fps after you load a video

SmartImageTools
Smart Load GIF Image

Load GIF frames with alpha, masks, and first/last shortcuts

SmartImageTools
Smart Load Video

The video loader that fixes your color shift

Smart Image Tools
Smart Point

One tiny coordinate that tells a flood fill where to start

SmartImageTools
Smart Point Set

One point in a wrapper, because the flood fill wants a list

SmartImageTools
Smart Point Set Merge

Building a multi-click background removal, one point at a time

SmartImageTools
Smart Preview Palette

A color strip that turns into a swatch grid on the node

SmartImageTools
Smart Progressive Scale Image

A zoom ramp for your frame batch, complete with pan

SmartImageTools
Smart Save Animated Image

Animated PNG that your browser can't play — read this first

SmartImageTools
Smart Save PNG

Save exactly where you want, and get your workflow baked in

SmartImageTools
Smart Semi-Transparence Remove

Baking the soggy edges of a cutout into a solid color

SmartImageTools
Smart Video Preview Scaled

A video preview that scales, so your GPU doesn't have to

SmartNodes/Image
Smart Video Preview Scaled Masked

See your video frames AND the mask at the same time

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

  1. Clone this repository into your ComfyUI custom_nodes folder:
cd ComfyUI/custom_nodes/
git clone https://github.com/yourusername/ComfyUI-SmartImageTools.git
  1. Install the required dependencies:
pip install -r ComfyUI-SmartImageTools/requirements.txt
  1. Restart ComfyUI

Requirements

  • scikit-learn
  • scikit-image
  • numpy
  • Pillow

License

MIT