Pixel Art
Pixel Art
A node for applying pixel art effects to an image. This is very customizable, with multiple controls like number of colors to use, dither mode, dither matrix size, palette mode, matrix threshold and expanding to negative values too. If you provide a palette it expects each pixel to be a unique color so say 4x1 or 2x2 are fine. scale = what to divide the image size by, higher values means bigger pixels num_colors = how many colors the palette should have, some palette modes may not use exactly the number if its really high saturation = pre add more saturation to the image before making the palette dither = dither mode for quantization matrix_size = size of the bayer matrix for dithering palette_mode = mode for creating the palette of the image dither_strength = how much dither to apply matrix_expand_negative = expand the matrix_threshold into the negative space, good for higher num_colors floyd_dither_serpentine = serpentine the dither or not floyd_dither_threshold_jitter = jitter the dither or not palette_filepath = path to any .ase, .aco or .act swatch file to use as the palette
Pack: Photography Nodes
custom_nodes.ComfyUI_Photography_Nodes
Inputs (13)
| Name | Type | Required |
|---|---|---|
| image | IMAGE | required |
| scale | INT | required |
| num_colors | INT | required |
| saturation | FLOAT | required |
| dither | COMBO | required |
| matrix_size | COMBO | required |
| palette_mode | COMBO | required |
| dither_strength | FLOAT | required |
| matrix_expand_negative | BOOLEAN | required |
| floyd_dither_serpentine | BOOLEAN | required |
| floyd_dither_threshold_jitter | BOOLEAN | required |
| palette_filepath | STRING | required |
| palette | IMAGE | optional |
Outputs (1)
| Name | Type |
|---|---|
| IMAGE | IMAGE |