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

          Arran Mccullough created issue -
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #51382 Mon Mar 27 10:56:00 MDT 2017 patrick.corless PDF-1141 added some more logic jpeg colour modde detection.
          Files Changed
          Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/ImageUtility.java
          Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/ImageStream.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #51383 Mon Mar 27 11:15:58 MDT 2017 patrick.corless PDF-1141 added some more logic jpeg colour mode detection.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #51384 Mon Mar 27 11:16:32 MDT 2017 patrick.corless PDF-1141 added some more logic jpeg colour mode detection.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java
          Patrick Corless made changes -
          Field Original Value New Value
          Fix Version/s 6.2.4 [ 13099 ]
          Patrick Corless made changes -
          Link This issue is duplicated by PDF-1130 [ PDF-1130 ]
          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.
          Patrick Corless made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #51420 Wed Apr 12 07:27:03 MDT 2017 patrick.corless PDF-1141 added some more logic jpeg colour mode detection.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java
          Patrick Corless made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: