Visit ComfyUI Online for ready-to-use ComfyUI environment
Add padding to images by extending width and height, with various methods for customization.
The ImageTransformPaddingAbsolute
node is designed to add padding to images by extending their width and height by specified amounts. This node is particularly useful when you need to ensure that your images have a certain size or aspect ratio, or when you want to add borders for aesthetic purposes. The padding can be applied using different methods, such as reflecting the image edges, extending the edge pixels, or filling with a constant value. This flexibility allows you to choose the most suitable padding method for your specific artistic needs, ensuring that the final output aligns with your creative vision.
This parameter expects a list of images to which the padding will be applied. Each image in the list will be processed individually to add the specified padding.
This integer parameter specifies the amount of padding to add to the width of the image. The default value is 64, and the minimum value is 0. Increasing this value will extend the image horizontally by the specified number of pixels on each side.
This integer parameter specifies the amount of padding to add to the height of the image. The default value is 64, and the minimum value is 0. Increasing this value will extend the image vertically by the specified number of pixels on each side.
This parameter defines the method used to apply the padding. The available options are "reflect", "edge", and "constant". "Reflect" mirrors the image edges, "edge" extends the edge pixels, and "constant" fills the padding area with a constant value. Choose the method that best suits your artistic requirements.
The output is a list of images with the specified padding applied. Each image in the output list corresponds to an image in the input list, but with the added padding according to the specified width, height, and method.
© Copyright 2024 RunComfy. All Rights Reserved.