-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2790 + tests #2898
#2790 + tests #2898
Conversation
PIL/PngImagePlugin.py
Outdated
else: | ||
|
||
# You must either have sRGB or iCCP. | ||
# Disallow sRGB chunks when a iCCP-chunk has been emitted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> "when an iCCP-chunk"
docs/handbook/image-file-formats.rst
Outdated
**gamma** | ||
Gamma, given as a floating point number. | ||
|
||
**srgb** | ||
The sRGB rendering intent as a integer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> "as an integer"
PIL/PngImagePlugin.py
Outdated
# gamma setting | ||
s = ImageFile._safe_read(self.fp, length) | ||
self.im_info["gamma"] = i32(s) / 100000.0 | ||
return s | ||
|
||
def chunk_cHRM(self, pos, length): | ||
# chromaticity, 8 unsigned ints, actual value is scaled by 100000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"100000" -> "100,000" or "100 000"
Fixes #2790, #2782 .
Changes proposed in this pull request: