ICEpdf
  1. ICEpdf
  2. PDF-229

Images on pdf display very dark

    Details

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

      Description

      Images in the attached PDF file display very dark.
      1. A001.pdf
        1.08 MB
        Arran Mccullough
      2. case9581-A001-logs.txt
        658 kB
        Arran Mccullough

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment A001.pdf [ 12694 ]
        Attachment case9581-A001-logs.txt [ 12695 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000EUD9J]
        Hide
        Patrick Corless added a comment -

        The PDF in question uses a new Transparency mechanism in PDF that creates a shadow effect between transparency groups. The effect falls under Soft Masks and we currently don't support the effect and thus only a slightly transparent black box is drawn over the images in question. We have quite a few samples now and should probably give the effect a shot.

        Show
        Patrick Corless added a comment - The PDF in question uses a new Transparency mechanism in PDF that creates a shadow effect between transparency groups. The effect falls under Soft Masks and we currently don't support the effect and thus only a slightly transparent black box is drawn over the images in question. We have quite a few samples now and should probably give the effect a shot.
        Patrick Corless made changes -
        Fix Version/s 4.2 [ 10243 ]
        Hide
        Patrick Corless added a comment -

        Completely wrong on the potential cause of this issue. It turns out that the images in question uses non normal decode parameter. When interpreted correctly it defines the domain in which a colour component lives. When I add some test code to compensate for this the images are displayed correctly. Still needs bit of work but pretty sure I'm on the right track.

        Show
        Patrick Corless added a comment - Completely wrong on the potential cause of this issue. It turns out that the images in question uses non normal decode parameter. When interpreted correctly it defines the domain in which a colour component lives. When I add some test code to compensate for this the images are displayed correctly. Still needs bit of work but pretty sure I'm on the right track.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23992 Wed Feb 23 09:06:19 MST 2011 patrick.corless PDF-229 addition of decode array processing for images that fall into the YCCK colour space.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Hide
        Patrick Corless added a comment -

        Cleaned update decode processing code for alterRasterYCCK2BGRA(...). I would like to have also added this code for the alterRaster methods but I don't have samples for these cases as of yet. Now that the basic algorithm is setup it should be pretty easy to apply as test cases become available. Marking issue as resolved.

        Show
        Patrick Corless added a comment - Cleaned update decode processing code for alterRasterYCCK2BGRA(...). I would like to have also added this code for the alterRaster methods but I don't have samples for these cases as of yet. Now that the basic algorithm is setup it should be pretty easy to apply as test cases become available. Marking issue as resolved.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24145 Tue Mar 15 09:20:21 MDT 2011 patrick.corless PDF-229 updated decode algorithm to use Number to avoid float/integer casting issues foutn in qa run.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24164 Wed Mar 16 09:51:22 MDT 2011 patrick.corless PDF-229 removed decode processing from alterRasterYCbCrA2RGBA_new as it caused a few regressions. .
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: