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

        Hide
        Patrick Corless added a comment -

        Added samples file to support server.

        Show
        Patrick Corless added a comment - Added samples file to support server.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: