-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Png with transparency is added twice #902
Comments
Same issue here. |
we use https://github.com/lovell/sharp to preprocesses image on the fly to produce consistent results across wide variety of images. It handles multiple formats so we can accept images in many formats and produce predictable pdfs without worrying about users supplying webp or other formats. |
A quickfix found according to #339 , saving as PNG24 and not as sRGB (with photoshop, for example) makes the issue disappear. |
I just tested #891, it fixes my issue, nevertheless is not deployed in npm yet |
I used Imagemagick to produce consistent results by flattening the PNG and then converting it to jpg:
|
Version 0.9 should fix thix |
Bug Report
Description of the problem
When I try to insert a png with transparency into the document, the image is inserted twice.
this is the image:
https://drive.google.com/file/d/1Paci2YPG0PAvnvNgGlVazkn3cL8txICt/view?usp=sharing
this is the output pdf
https://drive.google.com/file/d/1O3sRSiHnLCpRkiflb7tjzWfxGh7xbvSf/view?usp=sharing
Code sample
Your environment
The text was updated successfully, but these errors were encountered: