ComfyUI  >  Nodes  >  WAS Node Suite >  Image Pixelate

ComfyUI Node: Image Pixelate

Class Name

Image Pixelate

Category
WAS Suite/Image/Process
Author
WASasquatch (Account age: 4688 days)
Extension
WAS Node Suite
Latest Updated
8/25/2024
Github Stars
1.1K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for  WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Pixelate Description

Transform images into pixel art with adjustable pixelation levels and color options for a retro video game aesthetic.

Image Pixelate:

The Image Pixelate node is designed to transform your images into pixel art, giving them a retro, blocky appearance reminiscent of early video game graphics. This node allows you to control the level of pixelation, the number of colors used, and various other parameters to achieve the desired artistic effect. By leveraging advanced algorithms, it can create visually appealing pixelated images that maintain the essence of the original while adding a unique stylistic touch. This node is particularly useful for AI artists looking to add a nostalgic or stylized effect to their digital artwork.

Image Pixelate Input Parameters:

images

This parameter accepts the input image(s) that you want to pixelate. The images should be in a compatible format that the node can process.

pixelation_size

This parameter determines the size of the pixels in the pixelated image. A larger value will result in bigger, more noticeable pixels, while a smaller value will create finer pixelation. The default value is 164, and it can be adjusted to suit your artistic needs.

num_colors

This parameter specifies the number of colors to be used in the pixelated image. A lower number of colors will give a more simplified, cartoonish look, while a higher number will retain more details from the original image. The default value is 16.

init_mode

This parameter sets the initial mode for the pixelation process. The default value is 'random', which means the initial colors are chosen randomly.

max_iterations

This parameter defines the maximum number of iterations the algorithm will perform to achieve the pixelated effect. More iterations can lead to a more refined result but will take longer to process. The default value is 100.

color_palettes

This optional parameter allows you to provide custom color palettes for the pixelation process. If provided, the node will use these palettes instead of generating colors randomly.

color_palette_mode

This parameter determines how the color palettes are applied. The default mode is "Linear", which applies the colors in a linear fashion.

reverse_palette

This boolean parameter decides whether to reverse the color palette. The default value is 'False'.

dither

This boolean parameter enables or disables dithering, which is a technique used to create the illusion of color depth in images with a limited color palette. The default value is 'False'.

dither_mode

This parameter specifies the dithering algorithm to be used. The default mode is 'FloydSteinberg', which is a popular dithering technique.

Image Pixelate Output Parameters:

IMAGE

The output is the pixelated image, transformed according to the specified input parameters. This image retains the essence of the original but with a distinct pixelated style, making it suitable for various artistic applications.

Image Pixelate Usage Tips:

  • Experiment with different pixelation_size values to find the perfect balance between detail and pixelation.
  • Use custom color_palettes to achieve specific color schemes and artistic effects.
  • Enable dither to add a more nuanced texture to your pixelated images, especially when using a limited number of colors.
  • Adjust max_iterations to refine the pixelation process, but be mindful of the processing time.

Image Pixelate Common Errors and Solutions:

"Invalid pixelation size"

  • Explanation: The pixelation_size parameter is set to a non-integer or out-of-range value.
  • Solution: Ensure that pixelation_size is an integer within a reasonable range for your image dimensions.

"Invalid number of colors"

  • Explanation: The num_colors parameter is set to a non-integer or out-of-range value.
  • Solution: Ensure that num_colors is an integer and within a range that makes sense for your image (e.g., 2 to 256).

"Color palette format error"

  • Explanation: The color_palettes parameter is not formatted correctly.
  • Solution: Ensure that the color palettes are provided as a list of color strings, with each color on a new line and no comment characters.

"Dithering mode not recognized"

  • Explanation: The dither_mode parameter is set to an unrecognized value.
  • Solution: Ensure that dither_mode is set to a valid dithering algorithm, such as 'FloydSteinberg'.

Image Pixelate Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.