Merge pull request #2180 from alexwlchan/awlc/ico-isnt-readonly

Move ICO out of the list of read-only file formats
This commit is contained in:
wiredfool 2016-10-27 13:52:14 +01:00 committed by GitHub
commit f439bc7520

View File

@ -149,6 +149,19 @@ sets the following :py:attr:`~PIL.Image.Image.info` property:
ask for ``(512, 512, 2)``, the final value of ask for ``(512, 512, 2)``, the final value of
:py:attr:`~PIL.Image.Image.size` will be ``(1024, 1024)``). :py:attr:`~PIL.Image.Image.size` will be ``(1024, 1024)``).
ICO
^^^
ICO is used to store icons on Windows. The largest available icon is read.
The :py:meth:`~PIL.Image.Image.save` method supports the following options:
**sizes**
A list of sizes including in this ico file; these are a 2-tuple,
``(width, height)``; Default to ``[(16, 16), (24, 24), (32, 32), (48, 48),
(64, 64), (128, 128), (255, 255)]``. Any sizes bigger then the original
size or 255 will be ignored.
IM IM
^^ ^^
@ -730,19 +743,6 @@ The :py:meth:`~PIL.Image.Image.open` method sets the following
Transparency color index. This key is omitted if the image is not Transparency color index. This key is omitted if the image is not
transparent. transparent.
ICO
^^^
ICO is used to store icons on Windows. The largest available icon is read.
The :py:meth:`~PIL.Image.Image.save` method supports the following options:
**sizes**
A list of sizes including in this ico file; these are a 2-tuple,
``(width, height)``; Default to ``[(16, 16), (24, 24), (32, 32), (48, 48),
(64, 64), (128, 128), (255, 255)]``. Any size is bigger then the original
size or 255 will be ignored.
IMT IMT
^^^ ^^^