mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-15 11:44:10 +00:00
## Summary Browsers cannot render EXR/HDR in <img>, so these outputs showed as broken images. Add a full-screen three.js viewer holding a single WebGL context created on open and released on close, opened via an 'Open in HDR Viewer' action on EXR/HDR outputs in ImagePreview. The layout mirrors the 3D viewer: canvas on the left, grouped controls in a right-hand sidebar. The display pipeline (gamut -> exposure -> linear-to-sRGB -> dither -> clamp, plus clip warnings) is adapted from [HDRView](https://github.com/wkjarosz/hdrview). Source gamut is auto-detected from the EXR chromaticities attribute (Rec.709/Rec.2020) with a manual override. Inspection tools operate on the EXR float data kept on the CPU by EXRLoader: - pixel inspector: hover to read raw RGBA values and coordinates - statistics: min/max/mean/std-dev plus NaN and Inf counts - auto-exposure: set exposure so the max value maps to 1 - channel isolation: view R/G/B/A or luminance individually ## Screenshots (if applicable) https://github.com/user-attachments/assets/22b80718-4b15-41ee-86b5-8fe38a6a82e2