ComfyUI Node
LC Image Rotate + Pad π
Turn, crop and pad a picture by dragging on the node: the round handle turns it, the frame edges pad (drag out) or crop (drag in). The mask covers the new area and the corners a turn opens up.
LC Image Rotate + Pad π
- image
- control_image
- control_mask
- width
- height
βkeep_frametrueβΊ
βangle0.0βΊ
βfitexpandβΊ
βfillgrayβΊ
βleft0.00βΊ
βtop0.00βΊ
βright0.00βΊ
βbottom0.00βΊ
βaspectfreeβΊ
βsnap_to16βΊ
βblocktrueβΊ
CategoryLC MaskMaker/image
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Picture to turn, crop and pad. | |
| keep_frame | BOOLEAN | true | keep: the turn and frame stay as you set them, run after run. Use it when you rerun the same picture (post processing, same seed). snap back after run: once a run finishes, the turn and frame go back to the plain picture, so the next image starts clean. |
| angle | FLOAT | 0.0-180β180 | Turn in degrees, clockwise. Or drag the round handle on the node (hold Shift for 15Β° steps). |
| fit | COMBO | expand | expand: the frame starts around the whole turned picture, and the empty corners are masked for the model to paint. crop: the frame starts at the largest box with no empty corners. |
| fill | COMBO | gray | What goes in the new area before the model paints it. gray is what Krea 2 and AnyPaint expect. edge stretches the outer pixels out (for models that copy what they see). |
| left | FLOAT | 0.00-100β400 | Frame left edge, % of source width. Positive pads, negative crops. |
| top | FLOAT | 0.00-100β400 | Frame top edge, % of source height. Positive pads, negative crops. |
| right | FLOAT | 0.00-100β400 | Frame right edge, % of source width. Positive pads, negative crops. |
| bottom | FLOAT | 0.00-100β400 | Frame bottom edge, % of source height. Positive pads, negative crops. |
| aspect | COMBO | free | Lock the output shape. 'original' matches the source picture. |
| snap_to | COMBO | 16 | Round the output width and height up to a multiple of this (extra goes right and bottom). 1 = off. |
| block | BOOLEAN | true | until turned or framed: while the picture is untouched (no turn, no crop, no pad), the run stops after this node. Run once to see the picture here, set it up, then run again. never: always passes the picture on, even untouched. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| control_image | IMAGE | The turned, cropped and padded picture. |
| control_mask | MASK | White where the model paints: the padding and the corners a turn opens up. |
| width | INT | Output width. |
| height | INT | Output height. |