ComfyUI  >  Nodes  >  ComfyUI Essentials >  🔧 Pixelize

ComfyUI Node: 🔧 Pixelize

Class Name

PixelOEPixelize+

Category
essentials/image processing
Author
cubiq (Account age: 5020 days)
Extension
ComfyUI Essentials
Latest Updated
7/1/2024
Github Stars
0.3K

How to Install ComfyUI Essentials

Install this extension via the ComfyUI Manager by searching for  ComfyUI Essentials
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Essentials 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

🔧 Pixelize Description

Transform images into pixel art with advanced pixelization for retro video game aesthetics and customizable grid options.

🔧 Pixelize+:

PixelOEPixelize+ is a powerful node designed to transform your images into pixel art, providing a unique and stylized visual effect. This node leverages advanced pixelization techniques to downscale and then upscale images, creating a mosaic-like appearance that mimics the aesthetic of retro video games or pixel art. The primary benefit of using PixelOEPixelize+ is its ability to simplify complex images into a grid of colored blocks, making it ideal for creating stylized artwork, game assets, or simply adding a creative touch to your images. The node offers various customization options, allowing you to control the size of the pixel blocks, the thickness of the grid lines, and whether to match colors for a more cohesive look. By adjusting these parameters, you can achieve a wide range of artistic effects, from subtle pixelation to highly abstract representations.

🔧 Pixelize+ Input Parameters:

image

This parameter accepts the input image that you want to pixelize. The image should be in a tensor format, typically obtained from previous nodes in your workflow. The quality and resolution of the input image will directly affect the final pixelized output.

downscale_mode

This parameter determines the method used to downscale the image before pixelization. Common options include "nearest", "bilinear", and "bicubic". The choice of downscale mode can impact the sharpness and clarity of the pixelized image, with "nearest" providing a more blocky appearance and "bilinear" or "bicubic" offering smoother transitions.

target_size

This parameter specifies the target size for the downscaled image. It is an integer value that defines the width and height of the image after downscaling. Smaller target sizes will result in larger pixel blocks, while larger target sizes will create finer pixelation.

patch_size

This parameter controls the size of the individual pixel blocks in the final image. It is an integer value that determines how many pixels from the original image are combined into a single block. Larger patch sizes will create more pronounced pixelation effects.

thickness

This parameter sets the thickness of the grid lines between the pixel blocks. It is an integer value that defines the width of the lines in pixels. Thicker lines can create a more pronounced grid effect, while thinner lines will make the pixel blocks appear more connected.

color_matching

This boolean parameter determines whether to apply color matching to the pixel blocks. When enabled, the colors of the pixel blocks will be adjusted to better match the original image, creating a more cohesive and visually appealing result.

upscale

This boolean parameter specifies whether to upscale the pixelized image back to its original size. When enabled, the pixel blocks will be enlarged to match the dimensions of the input image, preserving the overall composition while maintaining the pixelated effect.

🔧 Pixelize+ Output Parameters:

output

The output parameter is a tensor containing the pixelized image. This image retains the overall composition of the input but is transformed into a grid of colored blocks, creating a unique and stylized visual effect. The output can be used in subsequent nodes for further processing or saved as a final artwork.

🔧 Pixelize+ Usage Tips:

  • Experiment with different downscale_mode options to achieve various artistic effects. "Nearest" mode is great for a classic pixel art look, while "bilinear" and "bicubic" can offer smoother transitions.
  • Adjust the target_size and patch_size parameters to control the level of pixelation. Smaller target sizes and larger patch sizes will create more pronounced pixelation effects.
  • Use the thickness parameter to add or reduce the visibility of grid lines between pixel blocks. Thicker lines can create a more defined grid, while thinner lines will make the blocks appear more connected.
  • Enable color_matching to ensure that the colors of the pixel blocks closely match the original image, resulting in a more cohesive and visually appealing output.

🔧 Pixelize+ Common Errors and Solutions:

"Input image tensor is not in the correct format"

  • Explanation: This error occurs when the input image is not provided in the expected tensor format.
  • Solution: Ensure that the input image is correctly formatted as a tensor, typically obtained from previous nodes in your workflow.

"Invalid downscale mode selected"

  • Explanation: This error occurs when an unsupported downscale mode is specified.
  • Solution: Verify that the downscale_mode parameter is set to one of the supported options, such as "nearest", "bilinear", or "bicubic".

"Target size must be a positive integer"

  • Explanation: This error occurs when the target_size parameter is not set to a positive integer.
  • Solution: Ensure that the target_size parameter is specified as a positive integer value.

"Patch size must be a positive integer"

  • Explanation: This error occurs when the patch_size parameter is not set to a positive integer.
  • Solution: Ensure that the patch_size parameter is specified as a positive integer value.

"Thickness must be a non-negative integer"

  • Explanation: This error occurs when the thickness parameter is not set to a non-negative integer.
  • Solution: Ensure that the thickness parameter is specified as a non-negative integer value.

🔧 Pixelize Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Essentials
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.