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

ASF subversion and git services commented on PDFBOX-6264:
---------------------------------------------------------

Commit 1938235 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1938235 ]

PDFBOX-6264: Sonar fix

> Lab color space values incorrectly clamped in shadings
> ------------------------------------------------------
>
>                 Key: PDFBOX-6264
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6264
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.37, 3.0.8 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: LabColorspace
>             Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
>         Attachments: octopdf-sample.pdf
>
>
> The attached file (from https://octopdf.com/octopdf-sample.pdf ) renders a 
> black border which should be a cyan shading.
> The cause for this is that PDFBox limits the values to 0..1 instead of the 
> ranges from the colorspace. The bug (introduced by me during PDFBOX-1915) is 
> in PDShading below this comment
> {code:java}
> // "If the value returned by the function for a given colour component 
> // is out of range, it shall be adjusted to the nearest valid value."
> {code}
> The Lab colorspace is 0..100 and the A B ranges from the colorspace object.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to