Nodes/ComfyUI-ICC-nodes/Preview Image ICC
ComfyUI Node

Preview Image ICC

Eyeball your color tag before you commit

By rubi-du·Created 2 years ago·Updated about a year ago· 2
Preview Image ICC
  • images
  • icc_profile

    Preview Image ICC is the pack's quiet third wheel, and it earns its keep by being the thing you wire in when you want to see a tagged result without committing it to disk. In the pack's example workflow it sits next to the stock PreviewImage on the same image, so you can literally look at the difference a color profile makes on your screen.

    What it is

    Read the source and it turns out to be Save Image ICC wearing a different hat. Same class, subclassed, with three changes: it writes to ComfyUI's temp directory instead of output, it drops the filename_prefix input entirely (prefix is auto-generated with a random suffix so temp files never collide), and it uses the fastest compression level. No permanent files, nothing to clean up - the frontend shows the preview in the UI and that's the end of it. It's an output node with no outputs, exactly like PreviewImage.

    Mechanically it's doing the same job as Save Image ICC: it takes an images tensor and an icc_profile blob and passes the profile bytes to Pillow's save(), embedding them as an iCCP chunk in the temp PNG. The browser then renders that PNG with the tag applied, which is why it's useful for sanity-checking: if your profile was going to mangle how the file displays downstream, this is where you'd spot it before producing the real files.

    Inputs and when to use it

    Two inputs, both simple:

    • images - the IMAGE tensor you want a look at.
    • icc_profile - the ICC_PROFILE output from Load Image ICC.

    That's the whole interface. No filename, no format options, no knobs. You use it mid-workflow the way you'd use PreviewImage, except you've threaded the profile through so the preview is actually tagged. That matters when you're round-tripping wide-gamut images and you want to confirm the colors you're about to save are the colors you intended. When you're happy, swap in Save Image ICC (or add it downstream) to write the real tagged file.

    The honest take

    This is a small utility in a small pack, and it only makes sense if you're already using Load Image ICC and Save Image ICC. If color profiles aren't part of your world, Preview Image ICC is a node you'll never touch - the stock PreviewImage renders the untagged version fine. But once you're preserving profiles, the plain preview can't show you what a tagged render will look like, and that's exactly the gap this fills.

    Install is the same as its siblings - ComfyUI Manager, search "ComfyUI-ICC-nodes", or git clone https://github.com/rubi-du/ComfyUI-ICC-nodes into custom_nodes, then restart. No extra dependencies, no models, nothing to configure.

    Categoryimage

    Inputs (2)

    NameTypeDefaultDescription
    imagesIMAGE
    icc_profileICC_PROFILEThe ICC profile to save.

    Outputs (0)

    No outputs