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 patch for bit depth of PNG image when using prawn-gmagick #2216

Closed
mojavelinux opened this issue May 28, 2022 · 0 comments
Closed

Add patch for bit depth of PNG image when using prawn-gmagick #2216

mojavelinux opened this issue May 28, 2022 · 0 comments
Assignees
Milestone

Comments

@mojavelinux
Copy link
Member

If the PNG image defines the value of the Depth field using two numbers, such as 8/2-bit, GraphicsMagick (which is the backend library for prawn-gmagick) reads this as 2 instead of 8. Apply a patch to prawn-gmagick that detects this scenario and goes back to the image blog and reads the correct value.

@mojavelinux mojavelinux added this to the v2.0.x milestone May 28, 2022
@mojavelinux mojavelinux self-assigned this May 28, 2022
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue May 28, 2022
…a PNG image if it extracts the wrong value
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue May 28, 2022
…a PNG image if it extracts the wrong value
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue May 28, 2022
…a PNG image if it extracts the wrong value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant