ComfyUI > Nodes > ComfyUI-Image-Effects > 🎭 ASCII Art Generator

ComfyUI Node: 🎭 ASCII Art Generator

Class Name

AsciiArtNode

Category
Image Effects
Author
orion4d (Account age: 929days)
Extension
ComfyUI-Image-Effects
Latest Updated
2025-05-28
Github Stars
0.02K

How to Install ComfyUI-Image-Effects

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Effects
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Effects 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🎭 ASCII Art Generator Description

Transform digital images into ASCII art for unique, retro aesthetic in digital creations.

🎭 ASCII Art Generator:

The AsciiArtNode is a creative tool designed to transform digital images into ASCII art, a form of visual art that uses characters from the ASCII standard to create images. This node is particularly beneficial for artists and designers looking to add a unique, retro aesthetic to their digital creations. By converting images into a grid of characters, the AsciiArtNode allows for a novel representation of visual content that can be both artistic and functional. The node processes images by first converting them to grayscale, resizing them according to specified ASCII resolution, and then mapping the pixel intensity to a set of ASCII characters. This process results in an ASCII art representation of the original image, which can be customized in terms of style, contrast, and color inversion. The AsciiArtNode is an excellent tool for those looking to explore the intersection of digital art and text-based media.

🎭 ASCII Art Generator Input Parameters:

image

The image parameter is the input image that you want to convert into ASCII art. It should be provided in a compatible image format. This parameter is crucial as it serves as the base for the ASCII transformation process.

ascii_resolution

The ascii_resolution parameter determines the width of the ASCII art in characters. It affects the level of detail in the final output, with higher values providing more detail. The resolution can range from 20 to 200 characters, with a default value of 80.

style

The style parameter allows you to choose the character set used for the ASCII art. Options include "classic," "detailed," "minimal," and "blocks," with "classic" being the default. Each style offers a different aesthetic, impacting the visual texture of the ASCII art.

invert

The invert parameter is a boolean option that, when enabled, inverts the colors of the ASCII art. This means that dark areas become light and vice versa, which can be useful for creating different visual effects.

background_color

The background_color parameter sets the background color of the ASCII art. Options include "white," "black," and "gray," with "white" as the default. This setting can enhance the contrast and visibility of the ASCII characters.

text_color

The text_color parameter specifies the color of the ASCII characters. You can choose from "black," "white," or "auto," with "black" as the default. This parameter helps in achieving the desired contrast against the background.

contrast_boost

The contrast_boost parameter adjusts the contrast of the image before converting it to ASCII. It ranges from 1.0 to 4.0, with a default of 2.0. Increasing the contrast can make the ASCII art more defined and visually striking.

height_compression

The height_compression parameter controls the vertical compression of the ASCII art. It ranges from 1.0 to 3.0, with a default of 2.0. This parameter helps in maintaining the aspect ratio of the original image when represented in ASCII.

font_scale

The font_scale parameter adjusts the size of the font used in the ASCII art. It ranges from 0.3 to 1.5, with a default of 0.9. This setting can influence the readability and overall appearance of the ASCII art.

🎭 ASCII Art Generator Output Parameters:

IMAGE

The output of the AsciiArtNode is an IMAGE that represents the original input image in ASCII art form. This output is a visual representation where each pixel is replaced by a character, creating a unique and artistic rendition of the original image. The ASCII art can be used for various creative projects, offering a text-based visual that retains the essence of the original image.

🎭 ASCII Art Generator Usage Tips:

  • Experiment with different ascii_resolution values to find the right balance between detail and simplicity for your project.
  • Use the contrast_boost parameter to enhance the visibility of the ASCII characters, especially if the original image has low contrast.
  • Try different style options to see which character set best suits the mood and theme of your artwork.

🎭 ASCII Art Generator Common Errors and Solutions:

Image input error

  • Explanation: This error occurs when the input image is not in a compatible format or is not provided.
  • Solution: Ensure that the input image is in a supported format and correctly loaded into the node.

Invalid ascii_resolution value

  • Explanation: This error happens when the ascii_resolution is set outside the allowed range.
  • Solution: Adjust the ascii_resolution to be within the range of 20 to 200 characters.

Style not recognized

  • Explanation: This error occurs if an unrecognized style is specified.
  • Solution: Choose a valid style option from "classic," "detailed," "minimal," or "blocks."

🎭 ASCII Art Generator Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Effects
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.