Skip to content

L1, L2, L4 pixels #2036

Mar 4, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

You're mixing up what bit depth represents in PNG.

PNG bit depth of 1 means 1 bit per sample or per palette index (not per pixel).

A 1 bit PNG will contain up to 2 colors in the palette.
A 2 bit PNG will contain up to 4 colors in the palette.
and so on...

Those colors are stored in RGBA format (32bit).

L8 is a 1 byte (8 bits) pixel format that is generally used to describe luminance (grayscale). You would use this if you new that your image was grayscale only or you wanted it to be.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GihanSoft
Comment options

@GihanSoft
Comment options

@JimBobSquarePants
Comment options

Answer selected by GihanSoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants