From cfad495130d21b8397ac49583e67cea91d530dc0 Mon Sep 17 00:00:00 2001 From: Ruven Date: Fri, 13 Sep 2024 11:19:45 +0200 Subject: [PATCH] Updated XYZ to sRGB conversion matrix to use that in the official IEC 61966-2-1 specification --- ChangeLog | 4 ++++ src/Transforms.cc | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4ab3601e..ef471684 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +13/09/2024: + - Updated XYZ to sRGB conversion matrix to use that in the official IEC 61966-2-1 specification + + 06/09/2024: - Added extra URL decoding to ID field for IIIF's info.json. Fixes https://github.com/ruven/iipsrv/issues/270 diff --git a/src/Transforms.cc b/src/Transforms.cc index d60dedaf..5b0a6e2d 100644 --- a/src/Transforms.cc +++ b/src/Transforms.cc @@ -2,7 +2,7 @@ /* IIPImage image processing routines - Copyright (C) 2004-2022 Ruven Pillay. + Copyright (C) 2004-2024 Ruven Pillay. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -52,9 +52,9 @@ static bool isfinite( float arg ) #define PARALLEL_THRESHOLD 65536 -static const float _sRGB[3][3] = { { 3.240479, -1.537150, -0.498535 }, - { -0.969256, 1.875992, 0.041556 }, - { 0.055648, -0.204043, 1.057311 } }; +static const float _sRGB[3][3] = { { 3.2406255, -1.537208, -0.4986286}, + {-0.9689307, 1.8757561, 0.0415175}, + { 0.0557101, -0.2040211, 1.0569959} }; using namespace std;