You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/07/02 23:45:25 UTC

[jira] [Commented] (PDFBOX-2180) LAB color space produces wrong colors

    [ https://issues.apache.org/jira/browse/PDFBOX-2180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14050751#comment-14050751 ] 

Tilman Hausherr commented on PDFBOX-2180:
-----------------------------------------

possibly related to PDFBOX-1997

> LAB color space produces wrong colors
> -------------------------------------
>
>                 Key: PDFBOX-2180
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2180
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel, 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)