ICEpdf
  1. ICEpdf
  2. PDF-1288

Improve loading of large Jbig2 and JPG200 images

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.3.1
    • Fix Version/s: 6.3.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      Trying to clean up some old code I have laying around. This particular patch adds code to AbstractImageDecoder to scale images that fall outside a reasonable size. In this particular case the images over 7000x7000 pixels will be scaled down to max edge of 1500 pixels. The intent being that the various image decoders can use the same rules for trying to scale down images or masks.

      Three more system properties to handle configuration
      org.icepdf.core.imageDecoder.maxwWdth
      org.icepdf.core.imageDecoder.maxwHeight
      org.icepdf.core.imageDecoder.preferredSize

      Current candidates for the new code are DctDecode, JpxDecode as they are the most common image types we have memory problems with.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52811 Wed Nov 28 20:08:16 MST 2018 patrick.corless PDF-1288 addition of scaling calls for really large images. Implemented
        for JPG2000 and JPEG images types for the time being.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/images/AbstractImageDecoder.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/images/JpxDecoder.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/images/DctDecoder.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: