-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Bitmap PNGs are not decoded #535
Copy link
Copy link
Closed
Labels
is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFworkflow-imagesFrom a users perspective, image handling is the affected feature/workflowFrom a users perspective, image handling is the affected feature/workflow
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFworkflow-imagesFrom a users perspective, image handling is the affected feature/workflowFrom a users perspective, image handling is the affected feature/workflow