ComfyUI > Nodes > ComfyUI_Lam > 创建空图片

ComfyUI Node: 创建空图片

Class Name

ImageBlank

Category
lam
Author
Lam Yan (Account age: 3065days)
Extension
ComfyUI_Lam
Latest Updated
2025-03-06
Github Stars
0.02K

How to Install ComfyUI_Lam

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

创建空图片 Description

Create customizable blank images for AI art projects with specified dimensions and color settings, ideal for placeholders or backgrounds.

创建空图片:

The ImageBlank node is designed to create blank images with customizable dimensions and color settings. This node is particularly useful for generating placeholder images or backgrounds in your AI art projects. By allowing you to specify the width, height, and RGB color values, it provides flexibility in creating images that fit your specific needs. The node can generate multiple images at once, making it efficient for batch processing. Its primary function is to produce images filled with a solid color, which can serve as a base for further artistic manipulation or as a simple visual element in your compositions.

创建空图片 Input Parameters:

count

The count parameter determines the number of blank images to generate. It allows you to specify how many images you need in a single operation, with a minimum value of 1 and a maximum of 99999. The default value is set to 1, meaning that if you do not specify otherwise, the node will create one image. This parameter is useful for batch processing when multiple images are required.

width

The width parameter sets the width of each generated image in pixels. It accepts values ranging from 8 to 4096, with a default of 512 pixels. The width is automatically adjusted to be a multiple of 8 to ensure compatibility with certain processing requirements. This parameter allows you to define the horizontal size of your images, which is crucial for fitting them into specific layouts or designs.

height

The height parameter defines the height of each generated image in pixels. Similar to the width, it can range from 8 to 4096 pixels, with a default value of 512. The height is also adjusted to be a multiple of 8. This parameter is essential for setting the vertical size of your images, ensuring they meet the dimensions needed for your project.

red

The red parameter specifies the intensity of the red color channel in the generated images. It accepts values from 0 to 255, with a default of 255, which represents full intensity. This parameter allows you to control the red component of the image's color, enabling you to create images with varying shades of red.

green

The green parameter controls the intensity of the green color channel in the images. Like the red parameter, it ranges from 0 to 255, with a default value of 255. Adjusting this parameter lets you modify the green component of the image's color, providing flexibility in achieving the desired hue.

blue

The blue parameter sets the intensity of the blue color channel in the images. It also ranges from 0 to 255, with a default of 255. By adjusting this parameter, you can influence the blue component of the image's color, allowing for a wide range of color possibilities.

创建空图片 Output Parameters:

IMAGE

The output of the ImageBlank node is a tensor of images, represented as IMAGE. This output contains the generated blank images with the specified dimensions and color settings. The images are returned as a stack of tensors, which can be easily integrated into further processing or used directly in your projects. The output is crucial for providing the visual elements you need, whether as standalone images or as components in a larger composition.

创建空图片 Usage Tips:

  • To create a uniform background for your project, set the count to 1 and adjust the width, height, and color parameters to match your desired background size and color.
  • Use the count parameter to generate multiple images at once, which can be useful for creating a series of placeholders or testing different color combinations quickly.
  • Ensure that the width and height are set to multiples of 8 to avoid any unexpected resizing or compatibility issues with other nodes or processes.

创建空图片 Common Errors and Solutions:

Image dimensions not a multiple of 8

  • Explanation: The width or height specified is not a multiple of 8, which is required for certain processing tasks.
  • Solution: Adjust the width and height parameters to be multiples of 8 to ensure compatibility.

Invalid color value

  • Explanation: The red, green, or blue parameter is set outside the allowed range of 0 to 255. - Solution: Ensure that all color parameters are within the 0 to 255 range to avoid errors in image generation.

Exceeding maximum count

  • Explanation: The count parameter exceeds the maximum allowed value of 99999.
  • Solution: Reduce the count to a value within the allowed range to successfully generate the images.

创建空图片 Related Nodes

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