From cd7b420acd47606612174c4f25fcd38e193e6d9b Mon Sep 17 00:00:00 2001 From: Michael Newman Date: Sat, 29 Aug 2026 08:49:36 -0400 Subject: [PATCH] Fix RGB to sRGB conversion formulas in command-line options page --- docs/command-line-options/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/command-line-options/index.html b/docs/command-line-options/index.html index edd65c51..3b2a76bd 100644 --- a/docs/command-line-options/index.html +++ b/docs/command-line-options/index.html @@ -1725,10 +1725,11 @@

-colorspace value

Y=0.212656*R+0.715158*G+0.072186*B; intensity-like Cb=(−0.114572*R−0.385428*G+0.500000*B)+(QuantumRange+1)/2 Cr=(0.500000*R−0.454153*G−0.045847*B)+(QuantumRange+1)/2 + sRGB - if R ≤ .0.0031308 then Rs=R/12.92 else Rs=1.055 R ^ (1.0 / 2.4) - 0.055 - if G ≤ .0.0031308 then Gs=B/12.92 else Gs=1.055 R ^ (1.0 / 2.4) - 0.055 - if B ≤ .0.0031308 then Bs=B/12.92 else Bs=1.055 R ^ (1.0 / 2.4) - 0.055 + if R ≤ 0.0031307 then Rs=12.92*R else Rs=1.055 R ^ (1.0 / 2.4) - 0.055 + if G ≤ 0.0031307 then Gs=12.92*G else Gs=1.055 G ^ (1.0 / 2.4) - 0.055 + if B ≤ 0.0031307 then Bs=12.92*B else Bs=1.055 B ^ (1.0 / 2.4) - 0.055 XYZ X=0.4124564*R+0.3575761*G+0.1804375*B