ICEpdf
  1. ICEpdf
  2. PDF-269

Incorrectly decoding ICCBased images

    Details

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

      Description

      The confidential files came in through support. The image contains several images where the images rendered with banding issues. I took a closer look at the images in question and they are using an ICCBased colour profile. We don't support ICCBassed colour profiles for this type of image (FlateDecode) and the code fails over to some older image decode methods. The ICCBAssed colour profile does have an alternative colour specified which is DeviceGray and is supported.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24108 Wed Mar 09 12:44:24 MST 2011 patrick.corless PDF-269 updated getImage to test for ICCBased colour spaces and check for a valid alternative colour to help properly decode the image in question.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case [5007000000GAGP2]
        Hide
        Patrick Corless added a comment -

        Updated the makeImageWithRasterFromBytes() method to check for an instance of a ICCBased colourspace and test if a valid alternative colour space was available. This helps insure that we use the makeImageWithRasterFromBytes() code rather then falling back to the fallback code that tries to assemble the image.

        Show
        Patrick Corless added a comment - Updated the makeImageWithRasterFromBytes() method to check for an instance of a ICCBased colourspace and test if a valid alternative colour space was available. This helps insure that we use the makeImageWithRasterFromBytes() code rather then falling back to the fallback code that tries to assemble the image.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten 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: