Nodes/Shima/Shima Hue Rotation
ComfyUI Node

Shima Hue Rotation

Shift every color in the image without leaving ComfyUI

By KDB-USJP·Created 6 months ago·Updated 6 months ago· 2
Shima Hue Rotation
  • images
  • IMAGE
hue_rotation0.0

Shima Hue Rotation does one thing: rotates the hue of an image by a number of degrees, like the "hue" slider in every photo editor ever. Feed it an IMAGE, give it a hue_rotation value between 0 and 360, and it hands back the same image with every color pushed around the color wheel. 0 does nothing; 180 inverts the hues to their opposites; 90 turns everything to a different palette entirely. It's the fastest way to recolor a generated image without re-sampling, and it belongs in the post-processing stage of your workflow, after VAE decode and before save.

The mechanism is a classic color-matrix rotation in PIL, applied per image in the batch. It converts to RGB, runs the hue-rotation matrix (the pack ships its own hue_rotate helper for this), and converts back, batched tensors in, batched tensors out. So it's deterministic, cheap, and runs on CPU - no model involved, no VRAM pressure.

The inputs

  • images - required IMAGE. Note the plural: it's batch-friendly, looping over every frame, so it works on multi-image batches and image sequences without splitting anything.
  • hue_rotation - optional float, 0 to 360, step 0.1. The only field that matters. Leave it at 0 and the node is a no-op passthrough.

Output is a single IMAGE, same shape and batch count as the input.

Where it fits

Two genuinely useful patterns. First, palette exploration: generate once, then run a handful of Hue Rotation nodes at different angles into a compare or grid node and you've got a quick color-study without burning GPU time. Second, style coherence: nudge all outputs in a batch by the same angle so a set of images shares a common tint shift, which is a surprisingly effective way to make a series feel like one body of work.

It's also a legitimately handy companion to the pack's Instagram Filters - rotate first, then apply the look - though for single strong recolors you can also reach for more powerful tools like color-matrix nodes from other packs. Hue rotation is blunt but it's exactly what it says.

Install & caveats

Same pack install:

cd ComfyUI/custom_nodes
git clone https://github.com/KDB-USJP/shima_wf

then restart ComfyUI, or ComfyUI Manager → search "Shima". No models, and the node itself has no extra pip dependency - the PIL stack it uses comes with ComfyUI.

One real caveat: the helper converts through RGB and rotates the hue of that color model, so pure black, white, and gray pixels (which have no hue) stay put, and very saturated colors shift most. Also, like the pack's other legacy image nodes, it assumes a normalized 0-255 workflow under the hood, so feed it standard decoded images rather than latents - which shouldn't surprise anyone. It's a small, honest utility; the only reason not to use it is if you're already running a full image-processing pack where this is one of fifty things you'll never remember the name of.

CategoryShima/Image

Inputs (2)

NameTypeDefaultDescription
imagesIMAGE
hue_rotationoptFLOAT0.00–360

Outputs (1)

NameTypeDescription
IMAGEIMAGE