ComfyUI > Nodes > Dapao-Toolbox > 按方向外补画板 🖌️@炮老师的小课堂

ComfyUI Node: 按方向外补画板 🖌️@炮老师的小课堂

Class Name

DapaoImagePadDirectionNode

Category
🤖Dapao-Toolbox
Author
paolaoshi (Account age: 0days)
Extension
Dapao-Toolbox
Latest Updated
2026-03-18
Github Stars
0.04K

How to Install Dapao-Toolbox

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

按方向外补画板 🖌️@炮老师的小课堂 Description

DapaoImagePadDirectionNode extends image canvas in specific directions with customizable padding.

按方向外补画板 🖌️@炮老师的小课堂:

The DapaoImagePadDirectionNode is a versatile tool designed to enhance your image editing capabilities by allowing you to extend the canvas of an image in specific directions. This node is particularly useful for artists and designers who need to adjust the framing of an image without altering its core content. It supports padding in four directions: up, down, left, and right, and offers flexibility in terms of measurement units, allowing you to specify padding in either pixels or percentages. Additionally, the node can automatically adjust the image size to meet divisibility requirements, ensuring seamless integration with other processes. It also supports mask synchronization and edge feathering, which helps in maintaining the visual consistency of the image. Furthermore, you can customize the padding with a fill color of your choice, providing creative control over the final appearance of the image.

按方向外补画板 🖌️@炮老师的小课堂 Input Parameters:

📸 图像

This parameter represents the input image that you wish to pad. It is the primary subject of the node's operation, and the quality and resolution of this image will directly affect the output. There are no specific minimum or maximum values for this parameter, as it accepts any image format supported by the system.

📏 单位

This parameter allows you to choose the unit of measurement for padding. You can select between "像素" (pixels) and "百分比" (percentage). The choice of unit will determine how the padding values are interpreted, with pixels providing absolute measurements and percentages offering relative measurements based on the image's dimensions. The default value is "像素".

⬇️ 下

This parameter specifies the amount of padding to be added to the bottom of the image. The value can be set in the unit chosen in the "📏 单位" parameter. The impact of this parameter is the extension of the image's canvas downward, which can be useful for adding space for text or other elements.

🎨 填充颜色

This parameter allows you to define the color used to fill the padded areas. The default color is "black", but you can choose any color that suits your design needs. This customization helps in maintaining the aesthetic continuity of the image.

按方向外补画板 🖌️@炮老师的小课堂 Output Parameters:

Padded Image

The primary output of this node is the padded image, which includes the original image content along with the newly added padding. The output image retains the original image's quality and resolution, with the additional canvas space filled according to the specified parameters. This output is crucial for further editing or integration into larger projects.

按方向外补画板 🖌️@炮老师的小课堂 Usage Tips:

  • To maintain the aspect ratio of your image while adding padding, consider using percentage units for the padding values. This ensures that the padding scales proportionally with the image size.
  • Experiment with different fill colors to see how they affect the overall composition of your image. A contrasting color can make the padded areas stand out, while a similar color can create a seamless extension.

按方向外补画板 🖌️@炮老师的小课堂 Common Errors and Solutions:

Invalid Unit Selection

  • Explanation: This error occurs when an unsupported unit is selected for the padding measurement.
  • Solution: Ensure that you select either "像素" (pixels) or "百分比" (percentage) as the unit for padding.

Image Not Found

  • Explanation: This error indicates that the input image could not be located or loaded.
  • Solution: Verify that the image path is correct and that the image file is accessible and in a supported format.

按方向外补画板 🖌️@炮老师的小课堂 Related Nodes

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