ICEpdf
  1. ICEpdf
  2. PDF-1141

Images in PDF are displayed with the wrong colours

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.2, 6.2.3
    • Fix Version/s: 6.2.4
    • Component/s: Colour, Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      Some of the embedded images in the PDF file are rendered with the wrong colours and/or background colours. They are rendered in shades of green instead of blue.

        Issue Links

          Activity

          Hide
          Patrick Corless added a comment -

          I finally had a chance to take a much closer look into this issue. The ImageUtility class is used to sniff out the JPEG header data and try to make some educated guesses about what colour model is used. The current implementation is pretty solid but was missing some obvious cases for detecting colour models for given SOS values of 3 and 4. Take these values into account seems to address a few corner case issues where we incorrectly detected YCbCr colour space.

          Show
          Patrick Corless added a comment - I finally had a chance to take a much closer look into this issue. The ImageUtility class is used to sniff out the JPEG header data and try to make some educated guesses about what colour model is used. The current implementation is pretty solid but was missing some obvious cases for detecting colour models for given SOS values of 3 and 4. Take these values into account seems to address a few corner case issues where we incorrectly detected YCbCr colour space.
          Hide
          Patrick Corless added a comment -

          Marking as fixed.

          Show
          Patrick Corless added a comment - Marking as fixed.

            People

            • Assignee:
              Patrick Corless
              Reporter:
              Arran Mccullough
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: