ComfyUI Node
Image Crop + Rotate + Pad π
Loads an image and applies one visual rotate, crop, and pad transform. The mask marks source transparency, rotation voids, and new padding.
Image Crop + Rotate + Pad π
- image
- mask
βimageβΎβΊ
βrotation_degrees0.0βΊ
βcrop_aspect_ratiofreeβΊ
βcrop_x0βΊ
βcrop_y0βΊ
βcrop_width0βΊ
βcrop_height0βΊ
βpad_left0βΊ
βpad_top0βΊ
βpad_right0βΊ
βpad_bottom0βΊ
βfeather24βΊ
βcanvas_multiple1βΊ
βfill_color#808080βΊ
Categoryπ AusBoss/Image
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMBO | Choose or upload an image from ComfyUI's input folder. | |
| rotation_degrees | FLOAT | 0.0-180β180 | Clockwise rotation applied before crop and padding. |
| crop_aspect_ratio | COMBO | free | Locks crop handles to a ratio; free allows any rectangle. |
| crop_x | INT | 00β65536 | β |
| crop_y | INT | 00β65536 | β |
| crop_width | INT | 00β65536 | 0 keeps the full available width. |
| crop_height | INT | 00β65536 | 0 keeps the full available height. |
| pad_left | INT | 00β32768 | β |
| pad_top | INT | 00β32768 | β |
| pad_right | INT | 00β32768 | β |
| pad_bottom | INT | 00β32768 | β |
| feather | INT | 240β4096 | Feathers the mask into kept pixels and fades the image edge into the fill color. |
| canvas_multiple | INT | 11β4096 | Rounds output up by adding the minimum extra pixels to right and bottom. |
| fill_color | STRING | #808080 | Color for rotation voids and padding; accepts #RGB/#RRGGBB hex, R, G, B (0-255 or 0..1 floats), one grayscale number, or a CSS color name. Unparseable values fall back to mid-gray. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The transformed image batch in BHWC format. |
| mask | MASK | BHW generated-area mask: transparency, rotation corners, and padding. |