ComfyUI  >  Nodes  >  Allor Plugin >  ImageTransformPaddingAbsolute

ComfyUI Node: ImageTransformPaddingAbsolute

Class Name

ImageTransformPaddingAbsolute

Category
image/transform
Author
Nourepide (Account age: 2900 days)
Extension
Allor Plugin
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install Allor Plugin

Install this extension via the ComfyUI Manager by searching for  Allor Plugin
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Allor Plugin 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ImageTransformPaddingAbsolute Description

Add padding to images by extending width and height, with various methods for customization.

ImageTransformPaddingAbsolute:

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.

ImageTransformPaddingAbsolute Input Parameters:

images

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.

add_width

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.

add_height

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.

method

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.

ImageTransformPaddingAbsolute Output Parameters:

IMAGE

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.

ImageTransformPaddingAbsolute Usage Tips:

  • Use the "reflect" method to create a seamless extension of the image, which is particularly useful for creating mirrored borders.
  • The "edge" method is ideal for maintaining the original image's edge colors, which can be useful for creating a subtle border effect.
  • If you need a solid border, use the "constant" method and specify the desired color value in your implementation.

ImageTransformPaddingAbsolute Common Errors and Solutions:

"Invalid padding method"

  • Explanation: This error occurs when an unsupported padding method is specified.
  • Solution: Ensure that the method parameter is set to one of the following: "reflect", "edge", or "constant".

"Padding values must be non-negative"

  • Explanation: This error occurs when the add_width or add_height parameters are set to negative values.
  • Solution: Set the add_width and add_height parameters to non-negative values (0 or higher).

"Input images list is empty"

  • Explanation: This error occurs when the images parameter is an empty list.
  • Solution: Provide a list of images to which the padding will be applied. Ensure that the list is not empty.

ImageTransformPaddingAbsolute Related Nodes

Go back to the extension to check out more related nodes.
Allor Plugin
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.