Nodes/ComfyUI-RefineNode/RefineNode Rotate Image
ComfyUI Node

RefineNode Rotate Image

Rotate an image by hand — with no scaling, and honest black corners

By 1Kynx·Created 4 months ago·Updated 26 days ago· 30
RefineNode Rotate Image
  • image
  • image
angle0.00

Sometimes you just need to spin an image a bit. RefineNode Rotate Image is the plainest node in ComfyUI-RefineNode, and that's the whole point: image in, angle in degrees, image out. No model, no masks, no info metadata, no surprises. It's the manual counterpart to RefineNode Match Product Angle, which auto-rotates a product to match a reference - this one is for when you know exactly how many degrees you want and just want it done.

The two inputs

  • image - the image to rotate. It's batch-aware; each frame in a batch gets rotated with the same angle.
  • angle - rotation in degrees, -360 to 360, stepped at 0.01. Positive rotates counterclockwise in the usual image convention. Handy, usable range: 90/180/270 for straightening, fractional values for fine alignment.

One output: image. That's the entire API.

What it does and doesn't do

The rotation is without scaling - the image isn't resized to fit, so the output canvas expands to contain the full rotated image, and the newly exposed corner regions are filled with black. That's the honest behavior you want for compositing work: no hidden rescale smearing the product, no transparent gaps that downstream nodes have to guess about. The black corners are yours to crop away or fill later.

Two things to know if you're coming from other rotate nodes:

  • It doesn't crop to the original canvas. Output size grows with the rotation angle, which is what lets you avoid scaling in the first place. If you need the original dimensions back, put a resize/crop node after it.
  • Black fill, not a rotation of the nearest edge. That's a deliberate choice for precision work - a transparent-looking gradient edge would be worse.

Honestly, for plain rotations ComfyUI already ships image transform nodes, so this one earns its place mainly as the pack's paired manual rotate: Match Product Angle for automatic orientation matching, this for everything else. If you're only ever doing 90-degree flips, you don't need it. But when you want a no-surprises, no-scaling rotation with a numeric angle in a refinement pipeline, it's right there in the same menu as its smarter sibling.

Install

ComfyUI Manager, search "ComfyUI-RefineNode", or:

cd ComfyUI/custom_nodes
git clone https://github.com/1Kynx/ComfyUI-RefineNode.git

Restart ComfyUI. No dependencies beyond ComfyUI's own numpy/torch/PIL stack, no model downloads - the pack itself never pulls weights; the Qwen-Image-Edit + RefineAnything LoRA stack in the example workflows is a separate download only if you run the full refinement pipeline.

Gotchas

  • Remember the canvas grows. Rotate a 1024px image by 45 degrees and the output is bigger, with black corners - that's by design, not a bug.
  • Angle is in degrees, not radians. Typing 0.5 when you mean half a degree will do a subtle, annoying rotation; if something looks "almost straight but not quite," check whether you meant 0.5° or 0.5 rad (≈28.6°).
CategoryRefineNode/Transform

Inputs (2)

NameTypeDefaultDescription
imageIMAGE
angleFLOAT0.00-360–360

Outputs (1)

NameTypeDescription
imageIMAGE