This commit is contained in:
Eric Soroos 2017-12-20 12:34:42 +00:00
parent 03150c2410
commit 27bc13df7b
2 changed files with 3 additions and 3 deletions

View File

@ -393,7 +393,7 @@ class PngStream(ChunkStream):
return s
def chunk_cHRM(self, pos, length):
# chromaticity, 8 unsigned ints, actual value is scaled by 100000
# chromaticity, 8 unsigned ints, actual value is scaled by 100,000
# WP x,y, Red x,y, Green x,y Blue x,y
s = ImageFile._safe_read(self.fp, length)
@ -752,7 +752,7 @@ def _save(im, fp, filename, chunk=putchunk):
chunk(fp, b"iCCP", data)
# You must either have sRGB or iCCP.
# Disallow sRGB chunks when a iCCP-chunk has been emitted.
# Disallow sRGB chunks when an iCCP-chunk has been emitted.
chunks.remove(b"sRGB")
info = im.encoderinfo.get("pnginfo")

View File

@ -417,7 +417,7 @@ The :py:meth:`~PIL.Image.Image.open` method sets the following
Gamma, given as a floating point number.
**srgb**
The sRGB rendering intent as a integer.
The sRGB rendering intent as an integer.
* 0 Perceptual
* 1 Relative Colorimetric