A small (7122 bytes) script to add support for radiance HDR and RGBE PNG images to your browser.
- Loading Radiance .HDR files. (rgbe format)
- Loading/Saving 32bit RGBE.PNG files.
- Loading/Saving 32bit RGB9_E5.PNG files.
- Converting RGBE, RGB9_E5 or float to LDR (with exposure and gamma tonemap)
- Converting from and to RGBE, RGB9_E5 and float.
- Interfaces like normal images. (can be added to document, used as texture, on canvas, ..)
Info, Help & Live Sample at https://enkimute.github.io/hdrpng.js