[
https://issues.apache.org/jira/browse/PDFBOX-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944221#comment-13944221
]
John Hewson edited comment on PDFBOX-1993 at 3/22/14 9:04 PM:
--------------------------------------------------------------
I've taken a look and it looks like is a duplicate of PDFBOX-1955, the cause in
both cases is PDDeviceGray's RGB conversion. Does the fix for PDFBOX-1955
resolve this?
was (Author: jahewson):
I've taken a look and this is a duplicate of PDFBOX-1955, the cause in both
cases is PDDeviceGray's RGB conversion.
> Gray color images much lighter
> ------------------------------
>
> Key: PDFBOX-1993
> URL: https://issues.apache.org/jira/browse/PDFBOX-1993
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: John Hewson
> Priority: Minor
> Attachments: gray-bad.png, gray-cow-bad.png, gray-cow-good.png,
> gray-good.png
>
>
> In testCreateLosslessFromImageRGB() I create a grayscale image, and in
> LosslessFactory.createFromImage() I save it as a grayscale image (that part
> is currently disabled, search and enable the part with
> BufferedImage.TYPE_BYTE_GRAY. When this is enabled,
> testCreateLosslessFromImageRGB() fails the identity test. The expected and
> the actual images are attached. I traced this effect to
> PDColorSpace.toRGBImageAWT(), where I saved the "src" and the "dest" image
> and got two different ones. But even the first one is already different to
> the grayscale image I created in the test.
> The two attached file pairs were created by writing the BufferedImage src and
> dst in PDColorSpace.toRGBImageAWT().
--
This message was sent by Atlassian JIRA
(v6.2#6252)