ComfyUI > Nodes > ComfyUI-Addoor > ComfyUI Easy Padding

ComfyUI Node: ComfyUI Easy Padding

Class Name

comfyui-easy-padding

Category
🌻 Addoor/image
Author
ADDOOR (Account age: 2884days)
Extension
ComfyUI-Addoor
Latest Updated
2025-01-24
Github Stars
0.03K

How to Install ComfyUI-Addoor

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

ComfyUI Easy Padding Description

Enhance image editing workflow by adding customizable padding for AI artists, offering both simplicity and advanced options.

ComfyUI Easy Padding:

The comfyui-easy-padding node is designed to enhance your image editing workflow by allowing you to add padding to images with ease. This node is particularly useful for AI artists who need to adjust the dimensions of an image without altering its core content. By adding padding, you can create a uniform border around your image, which can be customized in terms of size and color. This feature is beneficial for preparing images for further processing or for creating a specific visual effect. The node's functionality is straightforward, making it accessible even to those with limited technical expertise, while still offering advanced options for more experienced users.

ComfyUI Easy Padding Input Parameters:

image

This parameter represents the image to which you want to add padding. It is the primary input and serves as the base for all padding operations.

left

This integer parameter specifies the amount of padding to add to the left side of the image. It ranges from 0 to 4096, with a default value of 0. Increasing this value will expand the image's width by adding space on the left.

top

This integer parameter determines the padding to be added to the top of the image. It also ranges from 0 to 4096, with a default value of 0. Adjusting this value increases the image's height by adding space at the top.

This integer parameter sets the padding for the right side of the image. Like the other padding parameters, it ranges from 0 to 4096, with a default of 0. Increasing this value will add space to the right, expanding the image's width.

bottom

This integer parameter controls the padding added to the bottom of the image. It ranges from 0 to 4096, with a default value of 0. Adjusting this value increases the image's height by adding space at the bottom.

color

This string parameter allows you to specify the color of the padding. The default color is white (#ffffff), but you can choose any color by providing its hexadecimal code. This feature enables you to match the padding color with your image's theme or design.

transparent

This boolean parameter determines whether the padding should be transparent. By default, it is set to False, meaning the padding will be filled with the specified color. Setting it to True will make the padding transparent, which can be useful for overlaying images or creating layered compositions.

ComfyUI Easy Padding Output Parameters:

IMAGE

This output represents the modified image with the added padding. It reflects the changes made based on the input parameters, providing a new image that includes the specified padding dimensions and color.

MASK

This output is a mask that corresponds to the added padding areas. It can be used for further image processing tasks, such as masking or blending operations, allowing you to isolate the padded regions from the original image content.

ComfyUI Easy Padding Usage Tips:

  • To create a uniform border around your image, set equal values for the left, top, right, and bottom parameters.
  • Use the color parameter to match the padding with your image's background or theme, enhancing the overall aesthetic.

ComfyUI Easy Padding Common Errors and Solutions:

Invalid color code

  • Explanation: The color code provided is not a valid hexadecimal value.
  • Solution: Ensure that the color code is a valid hexadecimal string, starting with # followed by six characters (0-9, A-F).

Padding value out of range

  • Explanation: The padding value exceeds the allowed range of 0 to 4096.
  • Solution: Adjust the padding values to be within the specified range to avoid errors.

ComfyUI Easy Padding Related Nodes

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