ICEpdf
  1. ICEpdf
  2. PDF-247

YCCK to RGB colour conversion produces images with green hue

    Details

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

      Description

      A client has given us a set of PDF that have JPEG images that use the YCCK colour space. We also have quite a few PDF in our test suite. ICEpdf renders these images with a heavy green hue. The algorithms we to convert YCCK to RGB is from adobe but the converted image isn't very close to the benchmark.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 4.1.3 [ 10257 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23755 Mon Jan 10 08:35:10 MST 2011 patrick.corless PDF-247 tweaked the ratios of YCCK colour components used to make the RGB colours which result in overall improvement of colour conversion of YCCK values to RGB.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Hide
        Patrick Corless added a comment -

        I played around with several different variants of the YCCK to RGB algorithm with out much luck. To try and figure out what was going on I did some RGB colour grabs from the benchmark image and the image rendered in ICEpdf.

        As a result I was able to tweak the ratios of YCCK colour components used to make the RGB colours. I still have to run this though qa but from my test set the results look pretty solid. Marking as resolved for now.

        Show
        Patrick Corless added a comment - I played around with several different variants of the YCCK to RGB algorithm with out much luck. To try and figure out what was going on I did some RGB colour grabs from the benchmark image and the image rendered in ICEpdf. As a result I was able to tweak the ratios of YCCK colour components used to make the RGB colours. I still have to run this though qa but from my test set the results look pretty solid. Marking as resolved for now.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000E6WBN]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: