mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
typos
This commit is contained in:
parent
03150c2410
commit
27bc13df7b
|
@ -393,7 +393,7 @@ class PngStream(ChunkStream):
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def chunk_cHRM(self, pos, length):
|
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
|
# WP x,y, Red x,y, Green x,y Blue x,y
|
||||||
|
|
||||||
s = ImageFile._safe_read(self.fp, length)
|
s = ImageFile._safe_read(self.fp, length)
|
||||||
|
@ -752,7 +752,7 @@ def _save(im, fp, filename, chunk=putchunk):
|
||||||
chunk(fp, b"iCCP", data)
|
chunk(fp, b"iCCP", data)
|
||||||
|
|
||||||
# You must either have sRGB or iCCP.
|
# 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")
|
chunks.remove(b"sRGB")
|
||||||
|
|
||||||
info = im.encoderinfo.get("pnginfo")
|
info = im.encoderinfo.get("pnginfo")
|
||||||
|
|
|
@ -417,7 +417,7 @@ The :py:meth:`~PIL.Image.Image.open` method sets the following
|
||||||
Gamma, given as a floating point number.
|
Gamma, given as a floating point number.
|
||||||
|
|
||||||
**srgb**
|
**srgb**
|
||||||
The sRGB rendering intent as a integer.
|
The sRGB rendering intent as an integer.
|
||||||
|
|
||||||
* 0 Perceptual
|
* 0 Perceptual
|
||||||
* 1 Relative Colorimetric
|
* 1 Relative Colorimetric
|
||||||
|
|
Loading…
Reference in New Issue
Block a user