Image Flip
Mirror an Image in Three Clicks
- image
- image
imageFlip mirrors an image. That's the whole job, and sometimes the whole job is exactly what you want - flip a generated image so the subject faces the other way, correct a mirrored composition, or mirror a reference before feeding it somewhere it needs to be handed, not flipped. It's one of those nodes you won't think about until you need it, and then it saves you from rebuilding a whole graph.
How it works
It's a PIL transpose under the hood, applied to every image in the batch. mode gives you three options:
LEFT_RIGHT- horizontal mirror, the one you'll use 95% of the time.TOP_BOTTOM- vertical flip, for when your sky and ground got swapped.LEFT_RIGHT_AND_TOP_BOTTOM- both, a 180° rotation in all but name.
Each image in the batch gets flipped independently, so a batch of faces stays in order - just mirrored. Note it's a flip, not a rotate: nothing is resampled, dimensions never change, and you can't do a 90° turn here. If that's what you need, this isn't the node.
The inputs that matter
image in, image out, plus mode. The image_output (Hide/Preview/Save/Hide/Save) and save_prefix controls are the pack's standard handling for whether the result appears in the queue - set image_output to Hide if you're feeding the flip into a larger pipeline and don't want a preview splashing into the grid.
When it's actually useful
Mirroring is a classic character-consistency trick: generate a portrait, flip it, and you've got a cheap "facing the other way" shot of the same character. It's also quietly useful for ControlNet work - if a pose reference is handed, flipping the conditioning image to match your composition beats re-prompting and hoping. And for preview tiles before assembly, a mirror pass lets you see an image at a glance without squinting at reversed text.
Installing it
Ships in windfancy/zsq_prompt: search "zsq_prompt" in ComfyUI Manager, install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/windfancy/zsq_prompt
then restart ComfyUI. The pack installs a heavy requirements list that this node ignores entirely - it runs on PIL, which ComfyUI already has. The usual Manager "conflict" flag on zsq_prompt is the pack's generic class names colliding in the manager's index; the community consensus is to ignore that unless you're actually running the other pack it complains about.
Verdict
A three-line function dressed as a node, but a perfectly serviceable one. Install it as part of the pack, reach for it when a mirror is the difference between two images lining up or not.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mode | COMBO | LEFT_RIGHT | 3 options: LEFT_RIGHT, TOP_BOTTOM, LEFT_RIGHT_AND_TOP_BOTTOM |
| image_output | COMBO | Preview | 4 options: Hide, Preview, Save, Hide/Save |
| save_prefix | STRING | ComfyUI | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |