Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5137

Wrong classification of an JPEG image leading to a blank image added to a pdf document

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.23
    • Fix Version/s: 2.0.24, 3.0.0 PDFBox
    • Component/s: None
    • Labels:
      None

      Description

      According to https://docs.oracle.com/javase/8/docs/api/javax/imageio/metadata/doc-files/jpeg_metadata.html the number of image components should be read from the markerSequence/sof/@numFrameComponents if you want to retrieve the number of the whole image.

      At the moment the number is being read from the first Start Of Scan marker segment (sos) xPath encounters which in our case lead to the wrong classification of an image as a Grayscale instead of RGB resulting in a blank image added to the final PDF document.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                matej.risek.sc Matej Risek
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: