ComfyUI > Nodes > ComfyUI-RBG-ImageStitchPlus > RBG Pad Pro 🛠️

ComfyUI Node: RBG Pad Pro 🛠️

Class Name

RBGPadPro

Category
RBG-Suite-Pack
Author
RamonGuthrie (Account age: 700days)
Extension
ComfyUI-RBG-ImageStitchPlus
Latest Updated
2025-11-17
Github Stars
0.03K

How to Install ComfyUI-RBG-ImageStitchPlus

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

RBG Pad Pro 🛠️ Description

Enhance image processing with advanced padding options for precise control over image appearance.

RBG Pad Pro 🛠️:

RBGPadPro is a versatile node designed to enhance your image processing workflow by providing advanced padding capabilities. This node allows you to add padding to images with various customization options, such as specifying the padding color, mode, and dimensions. It supports different padding modes, including simple padding, edge-based padding, and transparent fill, making it suitable for a wide range of artistic and practical applications. By using RBGPadPro, you can ensure that your images maintain their aspect ratio, are centered or positioned as desired, and are scaled appropriately. This node is particularly beneficial for artists looking to prepare images for further processing or presentation, as it offers precise control over the image's final appearance.

RBG Pad Pro 🛠️ Input Parameters:

image

The image parameter is the input image that you want to apply padding to. It serves as the base for all padding operations and transformations performed by the node.

pad_mode

The pad_mode parameter determines the method used for padding the image. Options include "pad" for simple padding, "pad_edge" for using the image's edge colors, and "transparent_fill" for filling with transparency. The default is "pad".

pad_left

The pad_left parameter specifies the amount of padding to add to the left side of the image. It ranges from 0 to the maximum resolution, with a default value of 0.

pad_right

The pad_right parameter specifies the amount of padding to add to the right side of the image. It ranges from 0 to the maximum resolution, with a default value of 0.

pad_top

The pad_top parameter specifies the amount of padding to add to the top of the image. It ranges from 0 to the maximum resolution, with a default value of 0.

pad_bottom

The pad_bottom parameter specifies the amount of padding to add to the bottom of the image. It ranges from 0 to the maximum resolution, with a default value of 0.

pad_feathering

The pad_feathering parameter controls the smoothness of the transition between the image and the padding. It ranges from 0 to 100, with a default value of 0, where higher values result in a smoother transition.

pad_color

The pad_color parameter defines the color used for padding when the pad_mode is set to "pad". It accepts a hexadecimal color code, with a default value of "#FFFFFF" (white).

image_position

The image_position parameter determines the alignment of the image within the padded area. Options include "center", "left", "right", "top", and "bottom", with "center" as the default.

image_offset_x

The image_offset_x parameter allows you to shift the image horizontally within the padded area. It ranges from negative to positive maximum resolution, with a default value of 0.

image_offset_y

The image_offset_y parameter allows you to shift the image vertically within the padded area. It ranges from negative to positive maximum resolution, with a default value of 0.

image_scale

The image_scale parameter controls the scaling factor of the image within the padded area. It ranges from 0.0 to 10.0, with a default value of 1.0, where values greater than 1.0 enlarge the image.

fill_transparent_background

The fill_transparent_background parameter is a boolean that determines whether to fill the transparent areas of the image with a specified color. The default value is False.

transparent_fill_color

The transparent_fill_color parameter specifies the color used to fill transparent areas when fill_transparent_background is True. It accepts a hexadecimal color code, with a default value of "#000000" (black).

pad_aspect_ratio

The pad_aspect_ratio parameter allows you to maintain a specific aspect ratio for the padded image. It offers predefined aspect ratios or a custom option, with "custom" as the default.

resize_mode

The resize_mode parameter determines how the image is resized within the padded area. Options include "none", "resize_longer_side", and "resize_shorter_side", with "none" as the default.

target_size

The target_size parameter specifies the desired size of the padded image. It ranges from 64 to 8192, with a default value of 1024, and adjusts the final output dimensions.

resample_filter

The resample_filter parameter defines the resampling method used when resizing the image. Options include various upscale methods, with "bicubic" as the default.

RBG Pad Pro 🛠️ Output Parameters:

IMAGE

The IMAGE output is the final padded image, which incorporates all the specified padding, scaling, and positioning adjustments. It is the primary result of the node's operations, ready for further use or display.

MASK

The MASK output is an optional mask that represents the areas of the image that have been padded. It can be used for further processing or compositing tasks, providing additional control over the image's appearance.

RBG Pad Pro 🛠️ Usage Tips:

  • Experiment with different pad_modes to achieve various artistic effects, such as using edge colors for a seamless extension of the image.
  • Utilize the pad_feathering parameter to create smooth transitions between the image and padding, enhancing the visual appeal.
  • Adjust the image_position and image_offset parameters to precisely control the placement of the image within the padded area.

RBG Pad Pro 🛠️ Common Errors and Solutions:

Image size exceeds maximum resolution

  • Explanation: The specified padding or target size results in an image that exceeds the maximum allowed resolution.
  • Solution: Reduce the padding values or target size to ensure the final image size is within the allowed limits.

Invalid color code

  • Explanation: The pad_color or transparent_fill_color parameter contains an invalid hexadecimal color code.
  • Solution: Ensure that the color code is a valid hexadecimal string, such as "#FFFFFF" for white.

Unsupported pad_mode

  • Explanation: An invalid option is selected for the pad_mode parameter.
  • Solution: Choose a valid pad_mode option, such as "pad", "pad_edge", or "transparent_fill".

RBG Pad Pro 🛠️ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RBG-ImageStitchPlus
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 Models, enabling artists to harness the latest AI tools to create incredible art.