原文
This is a web demo of the HDRify library, which can read/write HDR, EXR, and JPEG-R and apply tone mapping transformations.
Examples
- Formats: Supports HDR (Radiance RGBE), EXR (OpenEXR), and Ultra HDR / Ultra JPG (JPEG with gain maps).
- True HDR display: On compatible browsers (mainly Chrome at this time), the viewer can display images in true HDR when you choose “Direct HDR” in the tone mapping dropdown.
- Pure JavaScript: Read and write these formats in pure JavaScript—no native bindings. Works in Node.js and in the browser.
- Tree-shaking friendly: The library is written in a functional style to maximize tree-shaking and keep deployment sizes small.
- EXR compression: Read and write EXR with no compression, RLE, ZIPS, ZIP, PIZ, and PXR24 (Pixar 24-bit).
- Tone mapping: ACES, Reinhard, Khronos Neutral, and AgX (Blender).
- CLI: A command-line tool is available for batch conversion and inspection: hdrify-cli on npm.