ICEpdf
  1. ICEpdf
  2. PDF-1140

Speed up application of ICC colour profile to an image.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.2
    • Fix Version/s: 6.2.3, 6.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Any but more so in JDK 1.8

      Description

      A supported customer send in an interesting PDF that has several small images. The images are converted to rgb using an ICC colour profile but the process is extremely slow on the clients system, taking 20 seconds or more. We are not seeing this on our system but there are similar conversations online pointing at java8 and jai combinations.

        Activity

        Patrick Corless created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51348 Thu Mar 16 15:47:40 MDT 2017 patrick.corless PDF-1140 attempt to speed up icc profile lookups by addding a static
        cache.
        Files Changed
        Commit graph ADD /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/RasterOps/IccCmykRasterOp.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/ImageUtility.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/DeviceCMYK.java
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.2.3 [ 13098 ]
        Fix Version/s 6.3 [ 13093 ]
        Hide
        Patrick Corless added a comment -

        The new cache is a little faster for files that have multiple images with similar colour pallets. The cache is static so it can have further performance gains on file to be rendered. The only other option speed up rendering is the disable the icc_profile processing using the system property -Dorg.icepdf.core.cmyk.disableICCProfile=true.

        Show
        Patrick Corless added a comment - The new cache is a little faster for files that have multiple images with similar colour pallets. The cache is static so it can have further performance gains on file to be rendered. The only other option speed up rendering is the disable the icc_profile processing using the system property -Dorg.icepdf.core.cmyk.disableICCProfile=true.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51349 Fri Mar 17 08:03:32 MDT 2017 patrick.corless PDF-1140 attempt to speed up icc profile lookups by addding a static
        cache.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Commit graph ADD /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/pobjects/graphics/RasterOps/IccCmykRasterOp.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: