Tilman Hausherr created PDFBOX-6264:
---------------------------------------
Summary: 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: 3.0.8 PDFBox, 2.0.37
Reporter: Tilman Hausherr
Assignee: Tilman Hausherr
Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
The attached file has 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]