Crates.io | rgbe |
lib.rs | rgbe |
version | 0.0.1 |
source | src |
created_at | 2024-02-28 23:25:44.165108 |
updated_at | 2024-02-28 23:25:44.165108 |
description | A library for loading and handling RGBE-format HDR textures. |
homepage | https://github.com/george-steel/rgbe-rs |
repository | https://github.com/george-steel/rgbe-rs |
max_upload_size | |
id | 1157129 |
size | 32,019 |
This crate contains types which correspond to the RGBE8 and RGB9E5 common-exponent unsigned float formats used to represent high dynamic range images. RGBE8 images can be loaded from Radiance HDR files and can also be loaded from and saved to PNG files which save the exponent in the alpha channel (compatible with hdrpng.js) for significantly smaller file sizes. RGBE8 images (as well as floating point images) can also be converted to RGB9E5 for use as GPU textures.
As well as the library, this package also contasins a command-line tool hdr2rgbe-png
to compress Radiance HDR images into RGBE8 PNG, which results in much smaller file sizes.