mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44:31 +03:00
Merge pull request #5344 from radarhere/releasenotes
Added release notes for #4947
This commit is contained in:
commit
e9c48342c9
|
@ -21,6 +21,23 @@ accepts negative co-ordinates, like the upper left corner of the ``box`` argumen
|
||||||
:py:meth:`~PIL.Image.Image.paste` can be negative. Naturally, this has effect of
|
:py:meth:`~PIL.Image.Image.paste` can be negative. Naturally, this has effect of
|
||||||
cropping the overlaid image.
|
cropping the overlaid image.
|
||||||
|
|
||||||
|
Image.getexif: EXIF and GPS IFD
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Previously, :py:meth:`~PIL.Image.Image.getexif` flattened the EXIF IFD into the rest of
|
||||||
|
the data, losing information. This information is now kept separate, moved under
|
||||||
|
``im.getexif().get_ifd(0x8769)``.
|
||||||
|
|
||||||
|
Direct access to the GPS IFD dictionary was possible through ``im.getexif()[0x8825]``.
|
||||||
|
This is now consistent with other IFDs, and must be accessed through
|
||||||
|
``im.getexif().get_ifd(0x8825)``.
|
||||||
|
|
||||||
|
These changes only affect :py:meth:`~PIL.Image.Image.getexif`, introduced in Pillow
|
||||||
|
6.0. The older ``_getexif()`` methods are unaffected.
|
||||||
|
|
||||||
|
API Additions
|
||||||
|
=============
|
||||||
|
|
||||||
ImageDraw.rounded_rectangle
|
ImageDraw.rounded_rectangle
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
@ -36,9 +53,6 @@ create a circle, but not any other ellipse.
|
||||||
draw = ImageDraw.Draw(im)
|
draw = ImageDraw.Draw(im)
|
||||||
draw.rounded_rectangle(xy=(10, 20, 190, 180), radius=30, fill="red")
|
draw.rounded_rectangle(xy=(10, 20, 190, 180), radius=30, fill="red")
|
||||||
|
|
||||||
API Additions
|
|
||||||
=============
|
|
||||||
|
|
||||||
ImageShow.IPythonViewer
|
ImageShow.IPythonViewer
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user