ICEpdf
  1. ICEpdf
  2. PDF-1228

Incorrect decode of device RGB with 4 bits per component.

    Details

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

      Description

      A client has submitted a PDF that that has numerous inline images that hava a common deviceRGB colour space but an oncommon 4 bit's per component data packing. The images is rendered slightly yellow instead of white.

        Activity

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

        The 4-bit packing makes the image decode fall back on our RawDecoder which assumes all rgb images types have 8 bits per component. I've update the method to handle the other bit per components alternatively. The image now renders correctly.

        Show
        Patrick Corless added a comment - The 4-bit packing makes the image decode fall back on our RawDecoder which assumes all rgb images types have 8 bits per component. I've update the method to handle the other bit per components alternatively. The image now renders correctly.
        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 #52228 Mon Jan 22 12:24:04 MST 2018 patrick.corless PDF-1228 added catch for 8 bpc which pushes other formats like 4 bpc down the the regular decode.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/images/RawDecoder.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: