[
https://issues.apache.org/jira/browse/PDFBOX-4830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105657#comment-17105657
]
Tilman Hausherr commented on PDFBOX-4830:
-----------------------------------------
I think there is an unsolved duplicate about that :-(
> Grayscale images inserted using LosslessFactory.createFromImage() have wrong
> gamma correction (too bright)
> ----------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-4830
> URL: https://issues.apache.org/jira/browse/PDFBOX-4830
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.19
> Reporter: Gábor Stefanik
> Priority: Major
>
> When I try to insert a grayscale image into a PDF using
> LosslessFactory.createFromImage(), the image in the PDF ends up too bright
> due to an incorrect gamma correction being applied. The issue seems to be a
> difference between Java's linear grayscale color space (gamma = 1), and the
> DeviceGray color space in PDF (which isn't linear, but apparently has the
> same gamma correction as DeviceRGB). The problem doesn't occur with
> JPEGFactory.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]