ComfyUI  >  Nodes  >  MTB Nodes >  Colored Image (mtb)

ComfyUI Node: Colored Image (mtb)

Class Name

Colored Image (mtb)

melMass (Account age: 3754 days)
MTB Nodes
Latest Updated
Github Stars

How to Install MTB Nodes

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

Colored Image (mtb) Description

Convert grayscale masks to colored images with specified color and background for AI artists, streamlining mask-to-image conversion.

Colored Image (mtb):

The Colored Image (mtb) node is designed to convert a mask (alpha) into an RGB image by applying a specified color and background. This node is particularly useful for AI artists who need to transform grayscale masks into colored images, allowing for more creative and visually appealing outputs. By leveraging this node, you can easily overlay a mask onto a background with a chosen color, facilitating the creation of complex and vibrant images without requiring extensive manual editing. The main goal of this node is to streamline the process of mask-to-image conversion, making it accessible and efficient for users with varying levels of technical expertise.

Colored Image (mtb) Input Parameters:


The mask parameter represents the input mask that you want to convert into an RGB image. This mask is typically a grayscale image where different shades of gray represent varying levels of transparency. The mask guides the node on where to apply the specified color and background.


The color parameter specifies the color to be applied to the areas defined by the mask. This parameter accepts color values in a format that can be interpreted by the node, such as hex codes. The chosen color will fill the regions of the mask, creating the primary visual element of the output image.


The background parameter defines the color of the background that will be visible in the areas not covered by the mask. This parameter also accepts color values in a format like hex codes. By default, the background color is set to #000000 (black), but you can customize it to any color that suits your artistic vision.

Colored Image (mtb) Output Parameters:


The IMAGE output parameter is the resulting RGB image generated by the node. This image combines the specified color and background based on the input mask, producing a visually cohesive and colored output. The output image is in RGB format, making it suitable for further processing or direct use in your projects.

Colored Image (mtb) Usage Tips:

  • Experiment with different mask shapes and colors to create unique and visually striking images.
  • Use contrasting colors for the color and background parameters to ensure that the mask stands out clearly against the background.
  • Combine this node with other image processing nodes to enhance the final output, such as applying blur or sharpening effects.

Colored Image (mtb) Common Errors and Solutions:

Invalid mask format

  • Explanation: The input mask is not in the expected format or is corrupted.
  • Solution: Ensure that the mask is a valid grayscale image and re-upload it.

Invalid color value

  • Explanation: The color or background parameter contains an invalid color value.
  • Solution: Verify that the color values are in the correct format, such as hex codes, and correct any errors.

Output image not as expected

  • Explanation: The resulting image does not match the expected appearance.
  • Solution: Double-check the input parameters, especially the mask, color, and background values, to ensure they are set correctly. Adjust the parameters as needed to achieve the desired result.

Colored Image (mtb) Related Nodes

Go back to the extension to check out more related nodes.
MTB Nodes

© 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.