From efa94a78e6ad868221f30e05d9dee2735cd4a7ba Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Wed, 26 Oct 2016 19:41:40 +0100 Subject: [PATCH 1/2] Move ICO out of the list of read-only file formats Fixes #2179. --- docs/handbook/image-file-formats.rst | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index f03bb6bb8..135fccdd8 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -149,6 +149,19 @@ sets the following :py:attr:`~PIL.Image.Image.info` property: ask for ``(512, 512, 2)``, the final value of :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 size is bigger then the original + size or 255 will be ignored. + 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 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 ^^^ From 6d38015474b86ae0fbb7ceed2025dfa6b7aedd06 Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Thu, 27 Oct 2016 06:29:32 +0100 Subject: [PATCH 2/2] Fix typo in description of ICO --- docs/handbook/image-file-formats.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index 135fccdd8..78840e720 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -159,7 +159,7 @@ 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 + (64, 64), (128, 128), (255, 255)]``. Any sizes bigger then the original size or 255 will be ignored. IM