Nodes/ComfyUI_LC_MaskMaker_nodes/LC Image Rotate + Pad πŸ”„
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.

By lonecatone23Β·Created 16 days agoΒ·Updated about 16 hours agoΒ· 1
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)

NameTypeDefaultDescription
imageIMAGEPicture to turn, crop and pad.
keep_frameBOOLEANtruekeep: 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.
angleFLOAT0.0-180–180Turn in degrees, clockwise. Or drag the round handle on the node (hold Shift for 15Β° steps).
fitCOMBOexpandexpand: 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.
fillCOMBOgrayWhat 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).
leftFLOAT0.00-100–400Frame left edge, % of source width. Positive pads, negative crops.
topFLOAT0.00-100–400Frame top edge, % of source height. Positive pads, negative crops.
rightFLOAT0.00-100–400Frame right edge, % of source width. Positive pads, negative crops.
bottomFLOAT0.00-100–400Frame bottom edge, % of source height. Positive pads, negative crops.
aspectCOMBOfreeLock the output shape. 'original' matches the source picture.
snap_toCOMBO16Round the output width and height up to a multiple of this (extra goes right and bottom). 1 = off.
blockBOOLEANtrueuntil 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)

NameTypeDescription
control_imageIMAGEThe turned, cropped and padded picture.
control_maskMASKWhite where the model paints: the padding and the corners a turn opens up.
widthINTOutput width.
heightINTOutput height.