mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
70 lines
2.2 KiB
ReStructuredText
70 lines
2.2 KiB
ReStructuredText
5.2.0
|
|
-----
|
|
|
|
API Changes
|
|
===========
|
|
|
|
Deprecations
|
|
^^^^^^^^^^^^
|
|
|
|
These version constants have been deprecated. ``VERSION`` will be removed in
|
|
Pillow 6.0.0, and ``PILLOW_VERSION`` will be removed after that.
|
|
|
|
* ``PIL.VERSION`` (old PIL version 1.1.7)
|
|
* ``PIL.PILLOW_VERSION``
|
|
* ``PIL.Image.VERSION``
|
|
* ``PIL.Image.PILLOW_VERSION``
|
|
|
|
Use ``PIL.__version__`` instead.
|
|
|
|
|
|
API Additions
|
|
=============
|
|
|
|
Image.rotate
|
|
^^^^^^^^^^^^
|
|
|
|
A new named parameter, ``fillcolor``, has been added to ``Image.rotate``. This
|
|
color specifies the background color to use in the area outside the rotated
|
|
image. This parameter takes the same color specifications as used in
|
|
``Image.new``.
|
|
|
|
Other Changes
|
|
=============
|
|
|
|
Support added for Python 3.7
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Pillow 5.2 supports Python 3.7.
|
|
|
|
Build macOS wheels with Xcode 6.4, supporting older macOS versions
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
The macOS wheels for Pillow 5.1.0 were built with Xcode 9.2, meaning 10.12
|
|
Sierra was the lowest supported version.
|
|
|
|
Prior to Pillow 5.1.0, Xcode 8 was used, supporting El Capitan 10.11.
|
|
|
|
Instead, Pillow 5.2.0 is built with the oldest available Xcode 6.4 to support
|
|
at least 10.10 Yosemite.
|
|
|
|
Fix _i2f compilation with some GCC versions
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
For example, this allows compilation with GCC 4.8 on NetBSD.
|
|
|
|
Resolve confusion getting PIL / Pillow version string
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
As user gnbl notes in #3082:
|
|
|
|
- it's confusing that PIL.VERSION returns the version string of the former PIL instead of Pillow's
|
|
- there does not seem to be documentation on this version number (why this, will it ever change, ..) e.g. at https://pillow.readthedocs.io/en/5.1.x/about.html#why-a-fork
|
|
- it's confusing that PIL.version is a module and does not return the version information directly or hints on how to get it
|
|
- the package information header is essentially useless (placeholder, does not even mention Pillow, nor the version)
|
|
- PIL.version module documentation comment could explain how to access the version information
|
|
|
|
We have attempted to resolve these issues here:
|
|
|
|
- https://github.com/python-pillow/Pillow/pull/3218
|