[
https://issues.apache.org/jira/browse/PDFBOX-2180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr closed PDFBOX-2180.
-----------------------------------
Resolution: Duplicate
Closing as duplicate, will add you in the other one.
> LAB color space produces wrong colors
> -------------------------------------
>
> Key: PDFBOX-2180
> URL: https://issues.apache.org/jira/browse/PDFBOX-2180
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Petr Slaby
> Priority: Minor
> Attachments: 000352.pdf, 0003521.jpg
>
>
> The attached example uses LAB colors. When rendering it using PDFToImage, the
> result is kind of violet, instead of black text and yellow rectangles (see
> the attached jpeg).
> When comparing 1.8 sources with current trunk, the incoming values are
> "scaled to range" in trunk PDLab#toRGB(), while this was not the case in 1.8
> PDColorState and ColorSpaceLab. As far as I can tell, in 1.8 the values were
> only "clipped to range" in ColorSpaceLab#toCIEXYZ().
> If I remove the scaling in 2.0 the rendering is correct.
--
This message was sent by Atlassian JIRA
(v6.2#6252)