ComfyUI > Nodes > ComfyUI > EmptyImage

ComfyUI Node: EmptyImage

Class Name

EmptyImage

Category
image
Author
ComfyAnonymous (Account age: 598days)
Extension
ComfyUI
Latest Updated
2024-08-12
Github Stars
45.85K

How to Install ComfyUI

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

EmptyImage Description

Generate blank images with specified dimensions and color for image data structures or placeholder images in AI art projects.

EmptyImage:

The EmptyImage node is designed to generate blank images of specified dimensions and color. This can be particularly useful for initializing image data structures or creating placeholder images in your AI art projects. By allowing you to specify the width, height, batch size, and color, this node provides flexibility in creating images that meet your specific needs. Whether you need a single image or a batch of images, the EmptyImage node can efficiently generate them on your chosen device, making it a versatile tool in your image processing workflow.

EmptyImage Input Parameters:

width

The width parameter specifies the width of the generated image in pixels. It accepts integer values with a default of 512, a minimum of 1, and a maximum defined by MAX_RESOLUTION. Adjusting this parameter will change the horizontal size of the output image.

height

The height parameter defines the height of the generated image in pixels. Similar to the width parameter, it accepts integer values with a default of 512, a minimum of 1, and a maximum defined by MAX_RESOLUTION. Modifying this parameter will alter the vertical size of the output image.

batch_size

The batch_size parameter determines the number of images to generate in a single batch. It accepts integer values with a default of 1, a minimum of 1, and a maximum of 4096. This parameter is useful when you need to create multiple images simultaneously.

color

The color parameter sets the color of the generated image using an integer value representing the RGB color code. It accepts values ranging from 0 to 0xFFFFFF, with a default of 0 (black). This parameter allows you to customize the color of the blank image.

EmptyImage Output Parameters:

IMAGE

The IMAGE output parameter returns the generated image(s) as a tensor. This tensor contains the pixel data for the image(s) created based on the specified input parameters. The output can be used directly in subsequent image processing or AI art generation tasks.

EmptyImage Usage Tips:

  • To create a white image, set the color parameter to 0xFFFFFF.
  • Use the batch_size parameter to generate multiple images at once, which can be useful for batch processing tasks.
  • Adjust the width and height parameters to match the dimensions required for your specific project or workflow.

EmptyImage Common Errors and Solutions:

"Invalid width or height value"

  • Explanation: This error occurs when the width or height parameter is set outside the allowed range.
  • Solution: Ensure that the width and height values are within the specified minimum and maximum limits.

"Batch size exceeds maximum limit"

  • Explanation: This error happens when the batch_size parameter is set to a value greater than 4096. - Solution: Reduce the batch_size value to 4096 or less.

"Invalid color value"

  • Explanation: This error is triggered when the color parameter is set to a value outside the range of 0 to 0xFFFFFF.
  • Solution: Set the color parameter to a valid RGB color code within the specified range.

EmptyImage Related Nodes

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