Nodes/Comfyui Krs Nodes/🧩 Crop Pad Advanced Krs
ComfyUI Node

🧩 Crop Pad Advanced Krs

A ComfyUI node in image/processing with 17 inputs and 3 outputs.

By KursatAs·Created 10 months ago·Updated 9 months ago· 0
🧩 Crop Pad Advanced Krs
  • image
  • IMAGE
  • MASK
  • IMAGE_BLENDED
â—„padding_x256â–º
â—„padding_y256â–º
â—„use_custom_paddingfalseâ–º
â—„padding_top0â–º
â—„padding_bottom0â–º
â—„padding_left0â–º
â—„padding_right0â–º
â—„fit_to_target_resolutionfalseâ–º
â—„target_width1024â–º
â—„target_height1024â–º
â—„scale_downfalseâ–º
â—„pad_colorwhiteâ–º
â—„transparent_paddingfalseâ–º
â—„feather_paddingfalseâ–º
â—„feather_radius16â–º
â—„feather_typelinearâ–º
Categoryimage/processing

Inputs (17)

NameTypeDefaultDescription
imageIMAGEThe input image to crop and/or pad.
padding_xINT256Horizontal padding amount per side when not using custom padding.
padding_yINT256Vertical padding amount per side when not using custom padding.
use_custom_paddingBOOLEANfalseEnable custom padding for each side independently. Allows negative values for cropping.
padding_topINT0Custom padding for the top side. Negative values crop from the top.
padding_bottomINT0Custom padding for the bottom side. Negative values crop from the bottom.
padding_leftINT0Custom padding for the left side. Negative values crop from the left.
padding_rightINT0Custom padding for the right side. Negative values crop from the right.
fit_to_target_resolutionBOOLEANfalseFit the padded image to a target resolution by centering it within the target canvas.
target_widthINT1024Target width for fitting the image when fit_to_target_resolution is enabled.
target_heightINT1024Target height for fitting the image when fit_to_target_resolution is enabled.
scale_downBOOLEANfalseScale down the image and padding if the total size exceeds the target resolution.
pad_colorCOMBOwhiteColor for solid padding areas when transparent_padding is disabled.
transparent_paddingBOOLEANfalseUse transparent padding instead of a solid color. Overrides pad_color.
feather_paddingBOOLEANfalseApply feathering to the padding edges for smooth blending with the original image.
feather_radiusINT161–4096Radius of the feathering effect in pixels.
feather_typeCOMBOlinearChoose feathering method: linear ramp or gaussian blur.

Outputs (3)

NameTypeDescription
IMAGEIMAGE—
MASKMASK—
IMAGE_BLENDEDIMAGE—