Flip
Mirror an image, the one-node version
- image
- image
There's no trick here, and that's the point: Flip mirrors an image along one axis. Nothing about generation changes, nothing gets regenerated - it's a pure pixel transform, the kind of thing you reach for constantly and never think about until the one time you need it and there's no built-in node that does exactly this.
You'll reach for it in a handful of specific spots: correcting a reference image that's mirrored relative to what you want (a photo shot with the subject facing the "wrong" way for your composition), building quick left/right augmented pairs for a LoRA dataset, or flipping the output of a workflow whose result came out backwards because an upstream ControlNet/IPAdapter reference was itself flipped. It's small, but it's the kind of node that saves you a trip to an external image editor for a five-second fix.
The inputs and outputs that matter
There are exactly two things to set:
image- what you're flipping.axis-horizontalorvertical. Horizontal is the common one: it mirrors left-to-right, like looking in a mirror. Vertical flips top-to-bottom, which is rarer but useful for correcting an upside-down scan or a deliberately inverted-reflection effect.
One output, image, wired straight into whatever's next - a Save node, a ControlNet preprocessor, another HakuImg node in a post-processing chain.
How to install it
Search ComfyUI-HakuImg in ComfyUI Manager, or:
cd ComfyUI/custom_nodes
git clone --recurse-submodules https://github.com/licyk/ComfyUI-HakuImg
Restart ComfyUI. Flip lives under Image → HakuImg along with the rest of the pack's nodes. It has no dependencies of its own - this is one of the nodes in the pack that doesn't touch the --recurse-submodules part at all, so if it's the only node you need from this pack, a plain clone will do, though the recursive flag doesn't hurt anything either.
Common issues & troubleshooting
There isn't much to trip over here - it's a one-line operation - but two things catch people out:
Flip isn't the same as rotate. A horizontal flip mirrors the image; it doesn't turn it 90 or 180 degrees. If your image came out sideways rather than backwards, you want a rotate node, not this one.
Text and watermarks come out backwards. Obvious once you think about it, easy to forget mid-workflow: flipping an image with any text, logos, or asymmetric details in it (a wristwatch on the wrong wrist, a car's steering wheel on the wrong side) will mirror those too. Fine for most compositional fixes, worth double-checking if the source has anything legible in it.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| axis | COMBO | 2 options: horizontal, vertical |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |