mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-01 10:30:34 +03:00
59 lines
877 B
ReStructuredText
59 lines
877 B
ReStructuredText
10.1.0
|
|
------
|
|
|
|
Backwards Incompatible Changes
|
|
==============================
|
|
|
|
Setting image mode
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
If you attempt to set the mode of an image directly, e.g.
|
|
``im.mode = "RGBA"``, you will now receive an ``AttributeError``. This is
|
|
not about removing existing functionality, but instead about raising an
|
|
explicit error to prevent later consequences. The ``convert`` method is the
|
|
correct way to change an image's mode.
|
|
|
|
Deprecations
|
|
============
|
|
|
|
TODO
|
|
^^^^
|
|
|
|
TODO
|
|
|
|
API Changes
|
|
===========
|
|
|
|
TODO
|
|
^^^^
|
|
|
|
TODO
|
|
|
|
API Additions
|
|
=============
|
|
|
|
ImageOps.cover
|
|
^^^^^^^^^^^^^^
|
|
|
|
Returns a resized version of the image, so that the requested size is covered,
|
|
while maintaining the original aspect ratio.
|
|
|
|
See :ref:`relative-resize` for a comparison between this and similar ImageOps
|
|
methods.
|
|
|
|
Security
|
|
========
|
|
|
|
TODO
|
|
^^^^
|
|
|
|
TODO
|
|
|
|
Other Changes
|
|
=============
|
|
|
|
TODO
|
|
^^^^
|
|
|
|
TODO
|