Minor fixes for some calls

This commit is contained in:
Clemens Schwaighofer
2024-11-18 14:52:36 +09:00
parent cb3d5e1f27
commit 35cc6dbf91
4 changed files with 3 additions and 9 deletions

View File

@@ -264,7 +264,7 @@ class CieXyz
private static function linRgbToXyzD65(RGB $rgb): XYZ
{
// if not linear, convert to linear
if (!$rgb->get('linear')) {
if (!(bool)$rgb->get('linear')) {
$rgb = (new RGB($rgb->returnAsArray()))->toLinear();
}
return new XYZ(self::convertArray(Math::multiplyMatrices(