ComfyUI Node

Color Filter

Sepia, grayscale, and B&W without fighting the prompt for it

By isekai-sh·Created 9 months ago·Updated 8 months ago· 3
Color Filter
  • image
  • image
filter_type
intensity1.00

IsekaiColorFilter is a one-dropdown node for the three classic photo filters: Sepia, Grayscale, and Black & White. You could argue "just add 'sepia' to the prompt" - and sometimes that works - but the model will interpret sepia as a vibe and give you whatever it feels like that day. This node guarantees the result: it converts your actual pixels, deterministically, after the model is done. When you need the effect and not the suggestion, that's the difference that matters.

How it works

The image converts to a PIL image, then the filter runs as an explicit pixel transform:

  • Sepia pushes every pixel through the classic warm-brown mapping - dark shadows go deep brown, highlights go cream. It's the "old photograph" tone.
  • Grayscale desaturates to a flat luminance image - pure neutral, no contrast drama.
  • Black & White is the punchier one, a higher-contrast monochrome that keeps the tonal separation you'd get from a real B&W conversion rather than a flat desaturate.
  • None passes the image through untouched.

There's an intensity slider (0–1, default 1) that blends the filtered result back against the original. At intensity 0.3 you get a subtle hint of sepia; at 1.0 you get the full filter. That makes this node usable as a gentle grade instead of a sledgehammer - a light sepia at 0.2 over a landscape reads as "warm film" rather than "1912."

The inputs

  • image - what you're filtering.
  • filter_type - None, Sepia, Grayscale, or Black & White.
  • intensity - 0–1, default 1. How much of the filter to apply.

Output is a single image tensor, straight into a Save node or on into more grading.

Installing it

Part of isekai-comfy-node - one install for everything:

ComfyUI Manager: search "isekai" → install isekai-comfy-node → restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/isekai-sh/isekai-comfy-node
cd isekai-comfy-node
pip install -r requirements.txt

Restart, then find it under Isekai → Image/Effects. Dependencies are Pillow and requests; no models, no downloads.

Common issues

Nothing here breaks - the failure modes are design ones. First, everything runs in RGB, so any alpha channel is dropped on the floor. If you're filtering a PNG with transparency for a sticker or overlay, you'll lose the alpha. Second, the pack-wide batch caveat applies: batched images only get their first frame processed.

The subtle trap is ordering. If you run ColorFilter before Color Adjust and then push saturation back up, you've effectively undid part of the desaturate. Do your color work first, then lock in the filter last, right before save. And if you're shooting for grayscale specifically, remember the difference between Grayscale (flat) and Black & White (contrasty) - they don't look the same, and people often pick the wrong one.

CategoryIsekai/Image/Effects

Inputs (3)

NameTypeDefaultDescription
imageIMAGE
filter_typeCOMBO4 options: None, Sepia, Grayscale, Black & White
intensityoptFLOAT1.000–1

Outputs (1)

NameTypeDescription
imageIMAGE