chromahash 0.5.0

Modern, high-quality image placeholder representation for professional formats
Documentation
  • Coverage
  • 68.18%
    15 out of 22 items documented1 out of 8 items with examples
  • Size
  • Source code size: 123.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • justin13888/chromahash
    2 0 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • justin13888

chromahash

Modern, high-quality image placeholder representation for professional formats (LQIP)

chromahash encodes an image into a compact, fixed 32-byte Low Quality Image Placeholder (LQIP) and decodes it back into a low-fidelity preview. Color is encoded in the perceptually-uniform OKLAB space with wide-gamut input support (sRGB, Display P3, Adobe RGB, BT.2020, ProPhoto RGB), an adaptive DCT grid, and alpha — all within the same fixed size.

This is the Rust implementation. It is part of a multi-language project whose implementations are validated bit-exact against a shared specification, so the same input produces the same placeholder in every language. The crate is zero-dependency.

[dependencies]
chromahash = "0.5"

See the project repository for the full format specification, the other language implementations, and usage examples.

Note: ChromaHash is a pre-1.0 Draft format — the bitstream is not yet guaranteed stable across versions.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.