Skip to content

Commit

Permalink
awt: convert images to linear sRGB according to IEC 61966-2-1
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Aug 27, 2024
1 parent f3af628 commit 2668bab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Any2LsRGBRed(CachableRed src) {
private static final double LFACT = 1.0 / 12.92;

public static final double sRGBToLsRGB(double value) {
if (value <= 0.003928)
if (value <= 0.04045d)
return value * LFACT;
return Math.pow((value + 0.055) / 1.055, GAMMA);
}
Expand Down

0 comments on commit 2668bab

Please sign in to comment.