Pillow/docs/releasenotes/8.0.0.rst
2020-08-09 20:08:38 +03:00

74 lines
2.2 KiB
ReStructuredText

8.0.0
-----
Backwards Incompatible Changes
==============================
Python 3.5
^^^^^^^^^^
Pillow has dropped support for Python 3.5, which reached end-of-life on 2020-09-13.
im.offset
^^^^^^^^^
``im.offset()`` has been removed, call :py:func:`.ImageChops.offset()` instead.
Image.fromstring, im.fromstring and im.tostring
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* ``Image.fromstring()`` has been removed, call :py:func:`.Image.frombytes()` instead.
* ``im.fromstring()`` has been removed, call :py:meth:`~PIL.Image.Image.frombytes()` instead.
* ``im.tostring()`` has been removed, call :py:meth:`~PIL.Image.Image.tobytes()` instead.
ImageCms.CmsProfile attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some attributes in :py:class:`PIL.ImageCms.CmsProfile` have been removed:
======================== ===============================================================
Removed Use instead
======================== ===============================================================
``color_space`` Padded :py:attr:`~PIL.ImageCms.CmsProfile.xcolor_space`
``pcs`` Padded :py:attr:`~PIL.ImageCms.CmsProfile.connection_space`
``product_copyright`` Unicode :py:attr:`~PIL.ImageCms.CmsProfile.copyright`
``product_desc`` Unicode :py:attr:`~PIL.ImageCms.CmsProfile.profile_description`
``product_description`` Unicode :py:attr:`~PIL.ImageCms.CmsProfile.profile_description`
``product_manufacturer`` Unicode :py:attr:`~PIL.ImageCms.CmsProfile.manufacturer`
``product_model`` Unicode :py:attr:`~PIL.ImageCms.CmsProfile.model`
======================== ===============================================================
API Changes
===========
Add MIME type to PsdImagePlugin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"image/vnd.adobe.photoshop" is now registered as the
:py:class:`.PsdImagePlugin.PsdImageFile` MIME type.
API Additions
=============
ImageOps.autocontrast cutoffs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Previously, the ``cutoff`` parameter of :py:func:`.ImageOps.autocontrast` could only
be a single integer, used as the percent to cut off from the histogram on the low and
high ends.
Now, it can also be a tuple ``(low, high)``.
Security
========
TODO
Other Changes
=============
TODO
^^^^
TODO