Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.4, 5.0.0 alpha1, 5.0.0 beta1
    • Fix Version/s: 5.0
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The cmyk colour conversion to rgb algorithm has always produced image that were a little dark when compared to acrobat. During the image refactoring work there was a consolidation as to which cmyk algorirthms where being used add a a result the black levels are a lot closer then in 4.x.

      I'm going to revert our fudge value but also include a system property org.icepdf.core.cmyk.black=255. Values greater than 255 will lighten an image and values less than 255 will darken the image.

        Activity

        Hide
        Patrick Corless added a comment -

        Closing

        Show
        Patrick Corless added a comment - Closing
        Hide
        Patrick Corless added a comment -

        We actually have to place for black configuration. The first is in imaging and uses 255 int values and the other is for colorants for fill and stroke where we use 0-1 float values so we need two properties:

        org.icepdf.core.cmyk.colorant.black=1.0

        • value is multiplied by the black float values so 0.5 would make the blacks half as black.

        org.icepdf.core.cmyk.image.black=255

        • same as defined above.
        Show
        Patrick Corless added a comment - We actually have to place for black configuration. The first is in imaging and uses 255 int values and the other is for colorants for fill and stroke where we use 0-1 float values so we need two properties: org.icepdf.core.cmyk.colorant.black=1.0 value is multiplied by the black float values so 0.5 would make the blacks half as black. org.icepdf.core.cmyk.image.black=255 same as defined above.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: