Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for PNG without alpha channel #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tormodvolden
Copy link

Some tools like img2pdf refuse PNG images with alpha channel. The suggested option --png-no-alpha will omit the alpha channel so that the PNG output can be used with img2pdf directly.

@tormodvolden
Copy link
Author

Or should this happen automatically if --foreground and --background are both set with only RRGGBB (no AA)?

@tormodvolden
Copy link
Author

Strictly it is not an alpha channel in this case but a tRNS Transparency chunk so we should maybe say "transparency" instead of "alpha channel".

@lenoleno
Copy link

lenoleno commented Dec 7, 2021

This is also relevant when generating PDF/A-1 compliant documents. Preflight fails on PDF/A-1 documents embedding plainqrencodePNG output, since transparency is only supported since PDF/A-2.

@ROBERT-MCDOWELL
Copy link

this PR is 3 years old and still open, why is it not merged? it's a very important feature!

@tormodvolden
Copy link
Author

tormodvolden commented Apr 4, 2024

The maintainer hasn't committed anything here since 2020 (Feb 2021 on the cygwin branch).

Anyway, I would be happy to modify this PR to use "transparency" instead of "alpha channel" if preferred.

@ROBERT-MCDOWELL
Copy link

the most important is your option is working well. I'm now following your fork. here it's dead....

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.

3 participants