ICEpdf
  1. ICEpdf
  2. PDF-712

Spike in memory consumption from 5.0.1 to 5.0.4

    Details

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

      Description

      A user has reported that that memory consumption from ICEPdf 5.0.1 to 5.0.4 has doubled when loading the following PDF document. There is no report of how they are measuring the consumption but they are however seeing a out of memory error in 5.0.4.

      This issue needs further investigation.

        Activity

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

        PDF-712 test file.

        Show
        Patrick Corless added a comment - PDF-712 test file.
        Patrick Corless made changes -
        Field Original Value New Value
        Attachment PETEXPDF_farbig.pdf [ 16645 ]
        Hide
        Patrick Corless added a comment -

        The memory size change is due to PDF-595 which was added in 5.0.3. The fix makes sure the the base image matches the size of the image mask. The sample file in question does not render correctly in 5.0.2 and earlier, the image rendered appears much larger then it should. The reason for this is the image mask is quite a bit larger then the base image.

        I'm going to update the ImageUtility so that there is choice about quality over memory.

        org.icepdf.core.imageScale.quality=true
        Default behavior, image will be scaled to the largest of the two images which should give higher quality output.
        org.icepdf.core.imageScale.quality=false
        Configurable, image will be scaled to the smallest of the two images which will save memory but the rendered output will be of lower quality

        Show
        Patrick Corless added a comment - The memory size change is due to PDF-595 which was added in 5.0.3. The fix makes sure the the base image matches the size of the image mask. The sample file in question does not render correctly in 5.0.2 and earlier, the image rendered appears much larger then it should. The reason for this is the image mask is quite a bit larger then the base image. I'm going to update the ImageUtility so that there is choice about quality over memory. org.icepdf.core.imageScale.quality=true Default behavior, image will be scaled to the largest of the two images which should give higher quality output. org.icepdf.core.imageScale.quality=false Configurable, image will be scaled to the smallest of the two images which will save memory but the rendered output will be of lower quality
        Hide
        Patrick Corless added a comment -

        The system property is "org.icepdf.core.imageMaskScale.quality" true|false. If set to false the mask will be scaled to the smaller image size and the image will be rendered at a lower quality but will use less memory.

        Show
        Patrick Corless added a comment - The system property is "org.icepdf.core.imageMaskScale.quality" true|false. If set to false the mask will be scaled to the smaller image size and the image will be rendered at a lower quality but will use less memory.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39825 Tue Jan 28 15:41:52 MST 2014 patrick.corless PDF-712 addition of new org.icepdf.core.imageMaskScale.quality property which can be used to lower the memory consumption of some mask and smasked image decodes. There however a loss of quality in some cases.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/SmoothScaledImageReference.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39826 Tue Jan 28 15:42:44 MST 2014 patrick.corless PDF-712 addition of new org.icepdf.core.imageMaskScale.quality property which can be used to lower the memory consumption of some mask and smasked image decodes. There however a loss of quality in some cases.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/SmoothScaledImageReference.java
        Patrick Corless 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: