2023-09-17 05:45:41 -04:00
2023-09-17 05:51:11 -04:00
2023-09-17 05:45:41 -04:00
2023-09-17 05:48:34 -04:00
2024-02-04 01:28:05 -05:00
2023-09-17 05:45:41 -04:00

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)
    • Save Tiff (RGB 16bpc TIFF, needs update to match SaveEXR functionality)
    • 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)
  • Latent
    • Save Latent EXR (4 channel latent -> RGBA 32bpc EXR)
    • Load Latent EXR (images must be in the ComfyUI/input directory)

Overview

Save images in TIFF 16 bit and EXR 32 bit formats, and save/load latent images as EXR

Recommend adding the --fp32-vae CLI argument for more accurate decoding.

Scatterplot of raw red/green values, left=PNG, right=TIFF. PNG quantizes the image to 256 possible values per channel (2^8), while the TIFF has 65,536 possible values per channel (2^16)

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 workflow metadata is saved to the TIFF or EXR images (TODO: option to autosave .json?)
  • WIP on most nodes
  • Need to add Load TIFF/EXR nodes
S
Description
No description provided
Readme MIT
114 KiB
Languages
Python 98.4%
Batchfile 1.6%