Skip to content

Added support for 2- and 4-bit color depth#82

Open
bennol wants to merge 1 commit intofoliojs:masterfrom
bennol:master
Open

Added support for 2- and 4-bit color depth#82
bennol wants to merge 1 commit intofoliojs:masterfrom
bennol:master

Conversation

@bennol
Copy link

@bennol bennol commented Jan 9, 2025

It is possible for pngs to use 2- or 4 bit colors where multiple pixel are coded into a byte which png-js doesn't support.

This fix is still very rough and was a proof of concept. It might point some other developers in the right direction when facing problems with 2 or 4 bit pngs.
Let me know if this should be merged and I will gladly take another pass on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant