ICEpdf
  1. ICEpdf
  2. PDF-1160

JPEG colour model selection issue.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.4
    • Fix Version/s: 6.3.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A community member has posted a file that contains three jpeg images that we having trouble distinguishing YCbCr and Cmyk colour spaces. We are incorrectly treating it as Cmyk instead of YCbCr.

      I've verified that the images contain the APPE PhotometricInterpretation valued as RGB which we might be able to use as a means to determine the correct 3 component colour mode.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.2.5 [ 13102 ]
        Patrick Corless made changes -
        Fix Version/s 6.3 [ 13093 ]
        Fix Version/s 6.2.5 [ 13102 ]
        Patrick Corless made changes -
        Fix Version/s 6.3.1 [ 13113 ]
        Fix Version/s 6.3 [ 13093 ]
        Hide
        Patrick Corless added a comment -

        I've added a code snippet that searches for the Adobe data in the JPEG meta data and returns the value transform key. A value of 1 is YCbCr and 2 is YCCK,

        Show
        Patrick Corless added a comment - I've added a code snippet that searches for the Adobe data in the JPEG meta data and returns the value transform key. A value of 1 is YCbCr and 2 is YCCK,
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52352 Wed Mar 21 08:21:02 MDT 2018 patrick.corless PDF-1160 added sniffer code to look for the adobe transform value to try
        and better differentiate between YCbCr and YCCK encode JEPGs.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/images/ImageStream.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/RasterOps/YCbCrRasterOp.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/filters/FlateDecode.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/images/DctDecoder.java
        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 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: