
A python port of pixelit by giventofly
This node allows users to pixelate images using various parameters such as block size, color reduction, and grid overlay.
Added some extra features for my needs for ComfyUI.
Clone this repository to ComfyUI/custom_nodes directory.
git clone https://github.com/your-repo-url.git
Preview
To use the PixelIt node in ComfyUI:
Launch the ComfyUI application.
In the node palette, search for “PixelIt” to locate the custom node.
image: The input image that you want to pixelate.convert_grayscale: If checked, converts the image to grayscale before pixelation.convert_palette: If checked, converts the image to a color palette.reduce_colors: If checked, reduces the number of colors in the image.colors: The target number of colors for the reduced-color option (range: 1-256).block_size: The size of each pixel block (range: 1-256).target_block_size_resize: If checked, resizes the image based on the target block size.target_block_size: The target block size for resizing (range: 1-256).grid: If checked, overlays a grid over the pixelated image.grid_alpha: The alpha transparency of the grid overlay (range: 0-255).Connect the PixelIt node to your workflow and run it to generate the pixelated output.
ImageLoader node.ImageLoader node to the PixelIt node.ImageSaver.giventofly/pixelit – inspired by.
And, for all ComfyUI custom node developers