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 transparency support in images #19

Open
synercoder opened this issue May 2, 2019 · 0 comments
Open

Add transparency support in images #19

synercoder opened this issue May 2, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@synercoder
Copy link
Owner

synercoder commented May 2, 2019

Working/thinking direction:

  1. Extract the alpha channel from a png or gif image
  2. Create a new greyscale image based on the alpha channel
  3. Save the image as a jpg image (lossing the alpha in the process)
  4. Set the SMask (softmask) in the PDF image dictionary that points towards the new greyscale image. To relink the alpha channel to the image.
  5. Tada Transparent image
@synercoder synercoder added the enhancement New feature or request label May 9, 2019
@synercoder synercoder added this to the 1.0.0 milestone May 10, 2019
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

No branches or pull requests

1 participant