ICEpdf
  1. ICEpdf
  2. PDF-305

Add masking support for DctDecoded images

    Details

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

      Description

      Common image handling is still a bit of mess, looking more like a spaghetti dish. Currently we only support masking on a case by case bases and as result don't don anything when it's encountered on jpeg image.

      Hopefully some time can be spent re-factoring the Stream class into a few new class the handles imaging in more structured manner. It's a big task but well worth the effort given that the Stream class is pushing 3000 lines. I'll create a new bug for this as it will likely be a 5.0 task as it will fit in nicely with the new parsing and file reading models.

      Back to the problem at hand. The main image is a black jpeg and a CCITTfax iamges is used as a mask which makes the image readable. Pretty simple fix just have to apply applyExplicitMask() .



        Activity

        Patrick Corless created issue -
        Hide
        Patrick Corless added a comment -

        Added samples file to support server.

        Show
        Patrick Corless added a comment - Added samples file to support server.
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [5007000000Gu96k]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24877 Thu Jun 23 08:14:51 MDT 2011 patrick.corless PDF-305 added masking to 8 bit jpeg decoding.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Hide
        Patrick Corless added a comment -

        There turned out to be two issue with this document. The first is how we where apply the explicit image mask for values equal to 0xffffff. The other issue was related to the fact that we weren't apply the mask for 8 bit gray scale images when present. PDF looks a lot better, and all images are shown.

        Show
        Patrick Corless added a comment - There turned out to be two issue with this document. The first is how we where apply the explicit image mask for values equal to 0xffffff. The other issue was related to the fact that we weren't apply the mask for 8 bit gray scale images when present. PDF looks a lot better, and all images are shown.
        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: