-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bitmap PNGs are not decoded #535
Comments
it is so dead here, nobody merges. Does anyone know about an active fork? :( |
|
@jansindl3r @zoj613 I just became the maintainer of PyPDF2 this month - and we did merge quite a lot! Things are moving in the right direction, but it will take time to clean up things. Be a bit more patient 🙏 I don't think PyPDF4 is the way to go. It doesn't have enough community support. Now that I clean things up in PyPDF2, I guess it will outpace PyPDF4 quickly (if it hasn't already; you have to judge) |
@MartinThoma thanks a lot for the effort. This is great to hear. I would be happy to contribute where I can, though I must say I know very little about the structure of pdf files. |
Does anybody have a PDF + Python code that shows the issue described here? |
Closes #535 Closes #536 Co-authored-by: Christopher Egner <[email protected]>
…ding PNGs (#1067) Closes #535 Closes #536 Co-authored-by: Christopher Egner <[email protected]>
Sorry for the long wait - the support for BitsPerComponent was added, along with the support of indexed color spaces 🎉 I will probably release Thanks to everybody ❤️ |
Thank you for the hard work @MartinThoma |
The current implementation of FlateDecode.decode assumes the PNG is encoded with
BitsPerComponent == 8
. This is not valid for bitmap PNGs. In this case, each row is still prefixed with the filter byte then followed by the bits, padded out to the final byte.Pull request coming shortly.
The text was updated successfully, but these errors were encountered: