Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance image processing with advanced padding options for precise control over image appearance.
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.
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.
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".
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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).
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.
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.
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.
The resample_filter parameter defines the resampling method used when resizing the image. Options include various upscale methods, with "bicubic" as the default.
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.
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.
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.