ICEpdf
  1. ICEpdf
  2. PDF-337

Incorrect decode of jpeg image

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 5.0.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The PDF in question displays a black image on the page, obfuscating the black text that is drawn above it. In our rendering core the JPEG image is detected as grey encoded. My first guess is that this is incorrect.

      This issue is complicated by the the fact that our current JPEG support is handle by a now deprecated and removed library in JDK 1.7. As a result we'll have to look at this issue using an alternative image library.

        Activity

        Hide
        Patrick Corless added a comment -

        The black image rendered by ICEpdf is a jpeg using the separation colour space. The JPEG detection code tries encoding the image using deviceGray which I don't think is correct in this case. There is no masking taking place.

        Further investigation is needed.

        Show
        Patrick Corless added a comment - The black image rendered by ICEpdf is a jpeg using the separation colour space. The JPEG detection code tries encoding the image using deviceGray which I don't think is correct in this case. There is no masking taking place. Further investigation is needed.
        Hide
        Patrick Corless added a comment -

        Reworked how we handle images that enocded with JPEG_ENC_GRAY. Applying the colour model brings out the colour for lake of a better word.

        Show
        Patrick Corless added a comment - Reworked how we handle images that enocded with JPEG_ENC_GRAY. Applying the colour model brings out the colour for lake of a better word.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: