Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.23
-
None
Description
When retrieving the number of components in a jpeg image, class org.apache.pdfbox.pdmodel.graphics.image.JPEGFactory seems to retrieve the wrong metadata ("markerSequence/sos/@numScanComponents" instead of "markerSequence/sof/@numFrameComponents").
As a consequence, a wrong color space might be assigned to the image, preventing such image to be properly rendered in an PDF document.
Attached is a jpeg file whose color space will be wrongly determined (PDDeviceGray.INSTANCE instead of PDDeviceRGB.INSTANCE)
Attachments
Attachments
Issue Links
- duplicates
-
PDFBOX-5137 Wrong classification of an JPEG image leading to a blank image added to a pdf document
- Closed