ComfyUI Extension
ComfyUI-Dither
High-quality image dithering node pack supporting Atkinson and Halftone methods, with channel-split capabilities for RGB/CMYK printing effects.
jnxmx/ComfyUI-Dither
Nodes2
On cloudLocal install
Categoryimage/dither
Stars0
Updated3 months ago
Readme
ComfyUI-Dither
A custom node pack for ComfyUI that applies high-quality image dithering (Atkinson and Halftone), including channel-split dithering for advanced RGB/CMYK printing effects.
Nodes Included
-
Dither: A simple node that applies dithering to the input image or batch.
- Adjust
threshold,contrast,brightness,gamma, andgrainbefore dithering. - Choose between
Atkinsonerror diffusion orHalftonegrid patterns. - Set custom
color1andcolor2(HEX strings) to map the output colors. scale: Resize the image during processing (e.g.,2.0for 200% resolution) to create high-res dithered outputs.
- Adjust
-
Dither by channel: An advanced node that splits the image into
RGBorCMYKchannels, applies dithering to each channel separately, and blends them back together.- Allows independent settings (method, threshold, contrast, scale, colors) for each channel.
- Outputs each processed channel individually (
CH1,CH2,CH3,CH4) and anOVERLAYcomposed of all channels blended together. - Choose
blend_modefor theOVERLAYoutput (multiply, screen, overlay, add, darken, lighten).
Installation
Clone this repository into your ComfyUI/custom_nodes/ directory:
cd ComfyUI/custom_nodes/
git clone https://github.com/YOUR_GITHUB_USERNAME/ComfyUI-Dither.git
Install the requirements:
pip install -r ComfyUI-Dither/requirements.txt
(Note: Numba is highly recommended as it speeds up the Atkinson dithering process by 100x)