Nodes/ComfyUI-Pixaroma/Image Uncrop Pixaroma
ComfyUI Node

Image Uncrop Pixaroma

Edit a crop, then paste it back onto the original

By pixaroma·Created 5 months ago·Updated 5 days ago· 359
Image Uncrop Pixaroma
  • image
  • mask
  • crop_info
  • image
  • mask
  • crop_info
feather0

Image Uncrop Pixaroma is the "put it back" half of the classic crop, edit, and re-paste workflow. Crop a region out of an image with Image Crop Pixaroma, run that crop through whatever you like - upscale, recolor, inpaint, background removal - then wire the result into Uncrop and it drops the edited piece back onto the original at the exact spot it came from. Everything outside the crop stays untouched.

This is the workflow behind a lot of professional-looking results: you don't regenerate the whole image to fix one face or upscale one detail, you work on just that region and composite it back. The glue that makes it seamless is a crop_info wire - the pack's way of passing "where did this crop come from" along without you typing coordinates.

How it works

Image Crop Pixaroma hands out a crop_info output that carries the original image and the crop's position. Wire that into Uncrop's crop_info input, wire your edited crop into image, and the node composites it back - resizing the edited crop to the original region automatically if your edit changed its dimensions (which it will, if you upscaled). That automatic resize is the detail that saves you from the classic "it's back but slightly the wrong size" misery.

Three things to tune:

  • image (required) - the edited crop to paste back.
  • crop_info (optional) - Image Crop's crop_info. If you leave it unwired, the edited image just passes through - so the node degrades gracefully during setup.
  • feather (optional, default 0) - softens the pasted area's edge by this many pixels so it blends into the original. 0 is a hard edge; a little feather hides the seam when your edit doesn't perfectly match the surroundings.

Transparency, done right

The mask output is a full-frame mask: the original mask with the crop region updated from whatever mask you wired in. Wire Image Crop's mask straight across and the whole image's transparency survives the trip; wire an edited region mask to change just that area. It's the pack's answer to the usual "crop lost my alpha" complaint. The node also passes crop_info through unchanged, so you can forward it to another node without rerouting from Image Crop.

Install and gotchas

Standard Pixaroma install - ComfyUI Manager (search "Pixaroma") or:

cd ComfyUI/custom_nodes
git clone https://github.com/pixaroma/ComfyUI-Pixaroma

Restart. No dependencies or model downloads.

Two practical notes. If the pasted piece doesn't line up, it's almost always a missing crop_info wire - the node can't know where the crop came from without it. And feather is your seam friend: a visibly hard edge after compositing usually just needs a higher feather value. The pack-wide caveat also applies: after an update, hard-refresh with Ctrl+Shift+R (Cmd+Shift+R on Mac) if a node looks blank - it's the browser cache, not your workflow.

Category👑 Pixaroma/✂️ Resize & Crop

Inputs (4)

NameTypeDefaultDescription
imageIMAGEThe edited crop to paste back (after upscaling, inpainting, color work, etc). It is resized to the original crop region automatically if its size differs.
maskoptMASKOptional. The mask for the crop region - it updates that area of the full-frame 'mask' output (the rest keeps the original mask). Wire Image Crop's mask straight across to carry the whole transparency through. Resized to the crop region automatically. It does NOT limit the image paste; the whole region is pasted.
crop_infooptPIXAROMA_CROP_INFOWire the 'crop_info' output of Image Crop Pixaroma here. It carries the original image and where the crop came from, so the edited crop can be placed back exactly. If left unwired, the edited image just passes through.
featheroptINT00–1024Softens the edge of the pasted area by this many pixels so it blends into the original. 0 = hard edge.

Outputs (3)

NameTypeDescription
imageIMAGEThe original image with the edited crop pasted back in place.
maskMASKThe full-frame mask: the original mask with the crop region updated from the wired mask (or unchanged if none). Use it to keep transparency, e.g. feed it into Join Image with Alpha.
crop_infoPIXAROMA_CROP_INFOThe same crop_info passed straight through, so you can forward it to another node without re-routing the wire from Image Crop.