ICEpdf
  1. ICEpdf
  2. PDF-765

ICC color profile optimizations

    Details

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

      Description

      A client has sent in a PDF that has a medium sized image (2496x3216) and corresponding image mask. The images however use a n ICC color profile which has very expensive colour look ups.

      When working with ICC color profiles for CMYK pallets I found that the Java Implementation was too slow for doing image lookups. I think it's time to revisit this issue both for ICCBase and DeviceCMYK colour spaces. There is a good chance we could create a local lookup cache that would improve performance as well as getting better colour accuracy.

        Activity

        Hide
        Patrick Corless added a comment -

        Added a HashMap based cache for previously looked up ICC color values. The key generation is a bit rudimentary but is adequate for now as the result is a significant speed up when using the ICC profiles for CMYK.

        Show
        Patrick Corless added a comment - Added a HashMap based cache for previously looked up ICC color values. The key generation is a bit rudimentary but is adequate for now as the result is a significant speed up when using the ICC profiles for CMYK.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: