PixaromaHelp
Help › Nodes › Resize & Crop

Image Crop Pixaroma

Crop any image visually with a draggable handle - no typing pixel coordinates.

In ComfyUI: double-click an empty spot on the canvas and type Image Crop Pixaroma.

What it does

Shows a draggable crop rectangle over your image with corner and edge handles. The on-node panel exposes Width, Height, X and Y fields plus Ratio and Alignment dropdowns - math expressions like 1024+512 or 512*2 work in any number field. Click a dropdown to pick from the list. Picking a non-Free alignment places the crop rectangle for you and fills in X and Y.

Three ways to load a source image: wire any upstream IMAGE into the input slot, drag and drop a file onto the node body, or paste from the clipboard with Ctrl+V. Drag-drop and paste auto-disconnect the upstream wire so your loaded image takes over.

How to use

  • Wire an upstream IMAGE, drag a file onto the node, or paste with Ctrl+V.
  • To keep transparency, also wire a MASK into the mask input (for example Load Image's MASK output) - it gets cut with the exact same box.
  • Adjust the crop rectangle using the panel fields or click Open Crop Editor for the fullscreen editor with handles.
  • Choose a preset ratio (1:1, 16:9, 9:16, and more) or leave it on Free.
  • Run the workflow to output the cropped result.
  • To put an edited crop back later, wire the crop_info output into Image Uncrop Pixaroma.

Outputs

image
The cropped image.
mask
The cropped mask, cut with the same box as the image. Wire a MASK in (such as Load Image's MASK) to carry transparency through the crop; otherwise it is a fully-opaque mask sized to the crop.
crop_info
Feed this into Image Uncrop Pixaroma to paste an edited version of the crop back onto the original image at the exact same spot.
width
Width of the cropped area in pixels.
height
Height of the cropped area in pixels.

What you wire in

imageIMAGEoptional
Wire any upstream IMAGE here to crop it (Load Image, VAE Decode, ControlNet output, anything). You can also drag-drop an image file onto the node body or paste one with Ctrl+V - those load the image directly and disconnect this wire.
maskMASKoptional
Optional. Wire a MASK here (for example Load Image's MASK output) to crop the transparency with the exact same box as the image - the result comes out the 'mask' output. Leave it unwired and the mask output is a fully-opaque mask sized to the crop (unless the loaded file itself has transparency, which is used automatically).

This is the help that comes with Pixaroma 1.4.212. Inside ComfyUI, select the node and click the orange ? above it to read the same help there.