valerybokov opened a new pull request, #530: URL: https://github.com/apache/pdfbox/pull/530
PDCalRGB.toRGB() only performed real CIE calibration for whitepoint (1 1 1) and otherwise fell back to a hack that returns the raw component values as-is. That hack was only ever validated for whitepoint D65 (0.9505 1.0 1.089), a workaround for producers that embed already-final RGB values (PDFBOX-2553), but it was being applied to every other whitepoint too, including this issue's D50 Wide Gamut RGB test image, whose intended red rendered as orange since its calibration was silently skipped. Narrow the hack to trigger only for the exact D65 whitepoint it was written for; every other whitepoint, including (1 1 1) as before, now goes through the real calibration path. ------------------------------- Per https://www.apache.org/legal/generative-tooling.html: portions of this PR were produced with assistance from Claude Code (Anthropic), based on a bug was described in Apache PDFBOX Issue Tracker. I've reviewed the generated code and confirm to the best of my knowledge that the output does not include any third-party copyrighted material and is compatible with the Apache License 2.0. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
