Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 4.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Nothing special

      Description

      Addition JPEG2000 image support to ICEpdf rendering core. It looks like there is finally a few open source libraries available for image decoding, http://jpeg2000.epfl.ch/ looks promising.

        Activity

        Hide
        Mark Collette added a comment -

        We should look at ImageIO (and possibly JAI ImageIO Tools) again. They've probably come a ways.

        Show
        Mark Collette added a comment - We should look at ImageIO (and possibly JAI ImageIO Tools) again. They've probably come a ways.
        Hide
        Patrick Corless added a comment -

        test file

        Show
        Patrick Corless added a comment - test file
        Hide
        Patrick Corless added a comment -

        I've taken a closer look at JPEG2000 support and think I've go something that will work for our first offering. It turns out that JAI support JPEG2000 by including the class files for JJ2000 5.1 in the jai_imageio.jar. When trying out different load options I had JJ2000 5.1 on the class path head of the JAI jars and I could reproduce the runtime exception that Mark was seeing. However if JJ2000 was removed from the classpath the images started showing up.

        I only have 12 JPEG2000 sample files but they all load correctly. There is an issue with images that have a CMYK colour space but this is a know issue with other image types as well. The JJ2000 image library can be sped up with the system property -Djj2000.j2k.entropy.encoder.StdEntropyCoder.nthreads=N, where N is 0 by default.

        Show
        Patrick Corless added a comment - I've taken a closer look at JPEG2000 support and think I've go something that will work for our first offering. It turns out that JAI support JPEG2000 by including the class files for JJ2000 5.1 in the jai_imageio.jar. When trying out different load options I had JJ2000 5.1 on the class path head of the JAI jars and I could reproduce the runtime exception that Mark was seeing. However if JJ2000 was removed from the classpath the images started showing up. I only have 12 JPEG2000 sample files but they all load correctly. There is an issue with images that have a CMYK colour space but this is a know issue with other image types as well. The JJ2000 image library can be sped up with the system property -Djj2000.j2k.entropy.encoder.StdEntropyCoder.nthreads=N, where N is 0 by default.
        Hide
        Patrick Corless added a comment -

        I'm going to create an new bug to capture the cmyk colour issue. JAI post a warning message "[WARNING]: EOC marker not found. Codestream is corrupted." at the command line but it doesn't seem to effect the image output. I'll take a closer look at this in the future if need be.

        Checking patched Stream.java class.

        Show
        Patrick Corless added a comment - I'm going to create an new bug to capture the cmyk colour issue. JAI post a warning message " [WARNING] : EOC marker not found. Codestream is corrupted." at the command line but it doesn't seem to effect the image output. I'll take a closer look at this in the future if need be. Checking patched Stream.java class.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: