casey / casey/pxl

[pxl-build] Support gamma, linearization, and color spaces

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Rust
Stars
32
Forks
2
PR merge metrics
No merged PRs in 30d

Description

The [`image`](https://github.com/PistonDevelopers/image) crate loads image data from disk without gamma correction, linearization, or color-space correction.

We should respect gamma and color space information in image resource source PNGs and JPEGs and load images as linear RGB. For a good breakdown of these issues, see [this crate](https://github.com/Ogeon/palette).

Ideally the `image` crate could add this functionality, requested in [this issue](https://github.com/PistonDevelopers/image/issues/786). If not, we might consider using a library that allows loading image metadata, or switching to another image decoding library.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.