ComfyUI Node
Realign to Source (EXPERIMENTAL π§ͺ) π
EXPERIMENTAL. Lines an edited picture back up with the original. Qwen Image 2.1 often draws an edit slightly zoomed in or shifted, especially style changes like watercolor or anime, so the edit no longer sits on top of the original. This node measures how far it moved and moves it back. Best result: pad the picture with Load Image + Pad before editing and plug its stitcher in here, so the edit has room to move and you get real picture all the way to the edges.
Realign to Source (EXPERIMENTAL π§ͺ) π
- edited
- source
- stitcher
- image
- empty_mask
- report
βfitzoom + shiftβΊ
βempty_filledgeβΊ
βmax_zoom20.0βΊ
Categoryπ AusBoss/Image
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| edited | IMAGE | The edited picture. | |
| source | IMAGE | The original picture you edited, at the size the edit model saw it. The result comes out at this size. | |
| fit | COMBO | zoom + shift | zoom + shift fixes the usual Qwen drift. affine also fixes a slight tilt. |
| empty_fill | COMBO | edge | If the edit slid past the edge, a thin strip ends up with nothing in it. edge stretches the nearest pixels into it, source fills it from the original, gray fills it flat gray for inpainting. |
| max_zoom | FLOAT | 20.01β50 | The biggest zoom it will undo, in percent. Anything bigger is treated as a change you meant and left alone. |
| stitcheropt | AUSBOSS_STITCHER | Optional. Plug in the stitcher from Load Image + Pad π if you padded the picture before editing. You get your picture back without the padding, with no empty edges. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The edit, lined up with the original and at its size. |
| empty_mask | MASK | White where the lined-up edit has nothing (a strip that slid off the edge). All black when there is none. |
| report | STRING | How far the edit had moved and what was done. Plug it into Show Text π to read it. |