Nodes Browser

ComfyDeploy: How ComfyUI-HQ-Image-Save works in ComfyUI?

What is ComfyUI-HQ-Image-Save?

Add Image Save nodes for TIFF 16 bit and EXR 32 bit formats. Probably only useful if you're applying a LUT or other color corrections, and care about preserving as much color accuracy as possible.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI-HQ-Image-Save and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI-HQ-Image-Save

Nodes:

  • Image
    • Load EXR (Individual file, or batch from folder, with cap/skip/nth controls in the same pattern as VHS load nodes)
    • Load EXR Frames (frame sequence with start/end frames, %04d frame formatting for filenames)
    • Save EXR (RGB or RGBA 32bpc EXR, with full support for batches and either relative paths in the output folder, or absolute paths with version and frame number formatting, and overwrite protection)
    • Save EXR Frames (frame sequence with %04d formatting, optionally save workflow as GUI .json and/or API .json)
    • Save Tiff (RGB 16bpc TIFF, outdated)
  • Latent
    • Load Latent EXR (Same VHS style controls now)
    • Save Latent EXR (4 channel latent -> RGBA 32bpc EXR)

Overview

Save and load images and latents as 32bit EXRs

I recommend adding the --fp32-vae CLI argument for more accurate decoding. If you get an error saying that the OpenEXR codec is disabled, see this issue.

Scatterplot of raw red/green values, left=PNG, right=EXR. PNG quantizes the image to 256 possible values per channel (2^8), while the EXR has full floating point precision.

comparison

For latent EXR viewing purposes, if you want a cheap approximation of RGB values from the four latent channels, use this formula:

r = (0.298 * r + 0.187 * g - 0.187 * b - 0.184 * a) * 0.18215
g = (0.207 * r + 0.286 * g + 0.189 * b - 0.271 * a) * 0.18215
b = (0.208 * r + 0.173 * g + 0.264 * b - 0.473 * a) * 0.18215

Known Issues

  • No load TIFF node, and the TIFF save is bad/outdated