Gábor Stefanik created PDFBOX-4830:
--------------------------------------

             Summary: 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


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]

Reply via email to