summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/icc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/icc.py b/src/icc.py
index 61c0414..1d6ab0d 100644
--- a/src/icc.py
+++ b/src/icc.py
@@ -187,11 +187,11 @@ def parse_icc(content):
elif gamma_type == 1:
## The profile is encoded with gamma, brightness and contrast values
# Get the gamma, brightness and contrast for the red channel,
- (r_gamma, r_min, r_max) = [int_(read(4)) / 65535 for _ in range(3)]
+ (r_gamma, r_min, r_max) = [int_(read(4)) / 65536 for _ in range(3)]
# green channel
- (g_gamma, g_min, g_max) = [int_(read(4)) / 65535 for _ in range(3)]
+ (g_gamma, g_min, g_max) = [int_(read(4)) / 65536 for _ in range(3)]
# and blue channel.
- (b_gamma, b_min, b_max) = [int_(read(4)) / 65535 for _ in range(3)]
+ (b_gamma, b_min, b_max) = [int_(read(4)) / 65536 for _ in range(3)]
def f():
'''
Apply the gamma, brightness and contrast