mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
LibGfx/ICC: Fix small mistake from #22700
Doesn't matter if both profiles are sRGB since inv(A) * A == A * inv(A), but when converting e.g. a P3 image to sRGB, the colors are very off if the matrices are the wrong way round here.
This commit is contained in:
parent
8d0344a636
commit
9a207da368
1 changed files with 1 additions and 1 deletions
|
@ -1625,7 +1625,7 @@ Optional<MatrixMatrixConversion> Profile::matrix_matrix_conversion(Profile const
|
|||
LutCurveType sourceGreenTRC = *source_profile.m_tag_table.get(greenTRCTag).value();
|
||||
LutCurveType sourceBlueTRC = *source_profile.m_tag_table.get(blueTRCTag).value();
|
||||
|
||||
FloatMatrix3x3 matrix = source_profile.rgb_to_xyz_matrix() * MUST(xyz_to_rgb_matrix());
|
||||
FloatMatrix3x3 matrix = MUST(xyz_to_rgb_matrix()) * source_profile.rgb_to_xyz_matrix();
|
||||
|
||||
LutCurveType destinationRedTRC = *m_tag_table.get(redTRCTag).value();
|
||||
LutCurveType destinationGreenTRC = *m_tag_table.get(greenTRCTag).value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue