2023-07-31 14:06:16 +03:00
|
|
|
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
|
|
|
|
=============
|
|
|
|
|
2023-09-26 14:19:04 +03:00
|
|
|
ImageOps.cover
|
|
|
|
^^^^^^^^^^^^^^
|
2023-07-31 14:06:16 +03:00
|
|
|
|
2023-09-26 14:19:04 +03:00
|
|
|
Returns a resized version of the image, so that the requested size is covered,
|
|
|
|
while maintaining the original aspect ratio.
|
2023-07-31 14:06:16 +03:00
|
|
|
|
2023-09-28 01:06:02 +03:00
|
|
|
See :ref:`relative-resize` for a comparison between this and similar ImageOps
|
|
|
|
methods.
|
|
|
|
|
2023-07-31 14:06:16 +03:00
|
|
|
Security
|
|
|
|
========
|
|
|
|
|
|
|
|
TODO
|
|
|
|
^^^^
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
Other Changes
|
|
|
|
=============
|
|
|
|
|
|
|
|
TODO
|
|
|
|
^^^^
|
|
|
|
|
|
|
|
TODO
|