Skip to main content

Function Description

The EmptyImage node is used to create blank images with specified dimensions and colors. It can generate solid-color background images, commonly used as starting points or background images for image processing workflows.

Working Principle

Just like a painter preparing a blank canvas before starting to create, the EmptyImage node provides you with a “digital canvas”. You can specify the canvas size (width and height), choose the base color of the canvas, and even prepare multiple canvases of the same specifications at once. This node is like an intelligent art supply store that can create standardized canvases that perfectly meet your size and color requirements.

Inputs

Parameter NameData TypeDescription
widthINTSets the width of the generated image (in pixels), determining the horizontal dimensions of the canvas
heightINTSets the height of the generated image (in pixels), determining the vertical dimensions of the canvas
batch_sizeINTThe number of images to generate at once, used for batch creation of images with the same specifications
colorINTThe background color of the image. You can input hexadecimal color settings, which will be automatically converted to decimal

Outputs

Output NameData TypeDescription
imageIMAGEThe generated blank image tensor, formatted as [batch_size, height, width, 3], containing RGB three color channels

Common Color Reference Values

Since the current color input for this node is not user-friendly, with all color values being converted to decimal, here are some common color values that can be used directly for quick application.
Color NameHexadecimal Value
Black0x000000
White0xFFFFFF
Red0xFF0000
Green0x00FF00
Blue0x0000FF
Yellow0xFFFF00
Cyan0x00FFFF
Magenta0xFF00FF
Orange0xFF8000
Purple0x8000FF
Pink0xFF80C0
Brown0x8B4513
Dark Gray0x404040
Light Gray0xC0C0C0
Navy Blue0x000080
Dark Green0x008000
Dark Red0x800000
Gold0xFFD700
Silver0xC0C0C0
Beige0xF5F5DC