Nodes/ComfyUI-AusBoss/Image Crop + Rotate + Pad πŸ†Ž
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.

By ausbossΒ·Created about a month agoΒ·Updated 7 days agoΒ· 2
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)

    NameTypeDefaultDescription
    imageCOMBOChoose or upload an image from ComfyUI's input folder.
    rotation_degreesFLOAT0.0-180–180Clockwise rotation applied before crop and padding.
    crop_aspect_ratioCOMBOfreeLocks crop handles to a ratio; free allows any rectangle.
    crop_xINT00–65536β€”
    crop_yINT00–65536β€”
    crop_widthINT00–655360 keeps the full available width.
    crop_heightINT00–655360 keeps the full available height.
    pad_leftINT00–32768β€”
    pad_topINT00–32768β€”
    pad_rightINT00–32768β€”
    pad_bottomINT00–32768β€”
    featherINT240–4096Feathers the mask into kept pixels and fades the image edge into the fill color.
    canvas_multipleINT11–4096Rounds output up by adding the minimum extra pixels to right and bottom.
    fill_colorSTRING#808080Color 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)

    NameTypeDescription
    imageIMAGEThe transformed image batch in BHWC format.
    maskMASKBHW generated-area mask: transparency, rotation corners, and padding.