mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
ICNS can now be saved on non-macOS platforms [ci skip]
This commit is contained in:
parent
65b735d9cb
commit
a283102ff4
|
@ -200,12 +200,16 @@ attributes before loading the file::
|
|||
ICNS
|
||||
^^^^
|
||||
|
||||
Pillow reads and (macOS only) writes macOS ``.icns`` files. By default, the
|
||||
Pillow reads and writes macOS ``.icns`` files. By default, the
|
||||
largest available icon is read, though you can override this by setting the
|
||||
:py:attr:`~PIL.Image.Image.size` property before calling
|
||||
:py:meth:`~PIL.Image.Image.load`. The :py:meth:`~PIL.Image.Image.open` method
|
||||
sets the following :py:attr:`~PIL.Image.Image.info` property:
|
||||
|
||||
.. note::
|
||||
|
||||
Prior to version 7.2.0, Pillow could only write ICNS files on macOS.
|
||||
|
||||
**sizes**
|
||||
A list of supported sizes found in this icon file; these are a
|
||||
3-tuple, ``(width, height, scale)``, where ``scale`` is 2 for a retina
|
||||
|
|
Loading…
Reference in New Issue
Block a user