Skip to content

Conversation

@jonasschnelli
Copy link

I had to use 2 color, 1 bit per pixel (1BPP) PNG for a project.
The current default is a 24-bit PNG, which is eventually not ideal for a just black and white QRCode.

Maybe this is useful.
Happy to adapt the PR if someone has a better approach.

Signed-off-by: Jonas Schnelli <[email protected]>
@endroid
Copy link
Owner

endroid commented Mar 4, 2025

@jonasschnelli Good addition. I incorporated this in the default PNG writer as an option. Also, now if no logo is present, the default will be set to 16 colors (which can be overridden via the options). Thank you!

@endroid endroid closed this Mar 4, 2025
@endroid endroid self-assigned this Mar 4, 2025
@endroid endroid added the enhancement New feature or request label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants