Skip to content

Commit

Permalink
Updated XYZ to sRGB conversion matrix to use that in the official IEC…
Browse files Browse the repository at this point in the history
… 61966-2-1 specification
  • Loading branch information
ruven committed Sep 13, 2024
1 parent 0b9b301 commit cfad495
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/Transforms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit cfad495

Please sign in to comment.