mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Merge pull request #3382 from radarhere/releasenotes
Improved release notes for 5.3.0
This commit is contained in:
commit
78c8b1f341
|
@ -16,8 +16,24 @@ For example, with all optional arguments::
|
|||
ImageOps.colorize(im, black=(32, 37, 79), white='white', mid=(59, 101, 175),
|
||||
blackpoint=15, whitepoint=240, midpoint=100)
|
||||
|
||||
Curved joints for line sequences
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
``ImageDraw.Draw.line`` draws a line, or lines, between points. Previously,
|
||||
when multiple points are given, for a larger ``width``, the joints between
|
||||
these lines looked unsightly. There is now an additional optional argument,
|
||||
``joint``, defaulting to ``None``. When it is set to ``curved``, the joints
|
||||
between the lines will become rounded.
|
||||
|
||||
ImageOps.pad
|
||||
^^^^^^^^^^^^
|
||||
|
||||
While ``ImageOps.fit`` allows users to crop images to a requested aspect ratio
|
||||
and size, new method ``ImageOps.pad`` pads images to fill a requested aspect
|
||||
ratio and size, filling new space with a provided ``color`` and positioning the
|
||||
image within the new area through a ``centering`` argument.
|
||||
|
||||
Other Changes
|
||||
=============
|
||||
|
||||
RGB WebP images are now read as RGB mode, rather than RGBX.
|
||||
|
|
Loading…
Reference in New Issue
Block a user