ComfyUI Node
🧩 Crop Pad Advanced Krs
A ComfyUI node in image/processing with 17 inputs and 3 outputs.
🧩 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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The input image to crop and/or pad. | |
| padding_x | INT | 256 | Horizontal padding amount per side when not using custom padding. |
| padding_y | INT | 256 | Vertical padding amount per side when not using custom padding. |
| use_custom_padding | BOOLEAN | false | Enable custom padding for each side independently. Allows negative values for cropping. |
| padding_top | INT | 0 | Custom padding for the top side. Negative values crop from the top. |
| padding_bottom | INT | 0 | Custom padding for the bottom side. Negative values crop from the bottom. |
| padding_left | INT | 0 | Custom padding for the left side. Negative values crop from the left. |
| padding_right | INT | 0 | Custom padding for the right side. Negative values crop from the right. |
| fit_to_target_resolution | BOOLEAN | false | Fit the padded image to a target resolution by centering it within the target canvas. |
| target_width | INT | 1024 | Target width for fitting the image when fit_to_target_resolution is enabled. |
| target_height | INT | 1024 | Target height for fitting the image when fit_to_target_resolution is enabled. |
| scale_down | BOOLEAN | false | Scale down the image and padding if the total size exceeds the target resolution. |
| pad_color | COMBO | white | Color for solid padding areas when transparent_padding is disabled. |
| transparent_padding | BOOLEAN | false | Use transparent padding instead of a solid color. Overrides pad_color. |
| feather_padding | BOOLEAN | false | Apply feathering to the padding edges for smooth blending with the original image. |
| feather_radius | INT | 161–4096 | Radius of the feathering effect in pixels. |
| feather_type | COMBO | linear | Choose feathering method: linear ramp or gaussian blur. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| IMAGE_BLENDED | IMAGE | — |