Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.6_P01
-
Fix Version/s: 5.0.7
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
-
Support Case References:
-
Workaround Exists:Yes
-
Workaround Description:use org.icepdf.core.cmyk.disableICCProfile=true to improve performance
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.
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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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.