Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Support PNG images with non-8-bit depth #393

Merged
merged 1 commit into from
Mar 23, 2018

Conversation

gustavla
Copy link
Collaborator

@gustavla gustavla commented Mar 22, 2018

This adds support for 1, 2, and 4 by decoding them into 8-bit. It adds support for 16-bit, by extracting only the most significant byte. This incurs loss of precision, so not ideal, but I think probably better than not supporting it at all.

Adds unit tests with references images and color correctness checks.

Fixes #375, #77.

@gustavla gustavla requested a review from nickjong March 22, 2018 20:16
This adds support for 1, 2, and 4 by decoding them into 8-bit.  It adds
"half support" for 16-bit, by extracting only the most significant byte.

Adds unit tests with references images and color correctness checks.
@nickjong
Copy link
Collaborator

Nice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants