Move to API Additions, not Deprecations [CI skip]

And some minor editing to make more concise/consistent.
This commit is contained in:
Hugo 2019-03-12 11:12:19 +02:00 committed by GitHub
parent 8bd4bbb808
commit 33d207b3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,35 +99,35 @@ version.
Use ``PIL.__version__`` instead.
New ``language`` parameter
^^^^^^^^^^^^^^^^^^^^^^^^
Text rendering functions now accept a ``language`` parameter, to request language-specific glyphs and ligatures from the font
The following functions accept the new parameter:
* ``PIL.ImageDraw.ImageDraw.text()``
* ``PIL.ImageDraw.ImageDraw.multiline_text()``
* ``PIL.ImageDraw.ImageDraw.textsize()``
* ``PIL.ImageDraw.ImageDraw.multiline_textsize()``
* ``PIL.ImageFont.ImageFont.getsize()``
* ``PIL.ImageFont.ImageFont.getsize_multiline()``
* ``PIL.ImageFont.ImageFont.getmask()``
API Additions
=============
DIB File Format
DIB file format
^^^^^^^^^^^^^^^
Pillow now supports reading and writing the DIB "Device Independent Bitmap" file format.
Pillow now supports reading and writing the Device Independent Bitmap file format.
Image.quantize
^^^^^^^^^^^^^^
The `dither` option is now a customisable parameter (was previously hardcoded to `1`). This parameter takes the same values used in `Image.convert`
The ``dither`` option is now a customisable parameter (was previously hardcoded to ``1``).
This parameter takes the same values used in ``Image.convert``.
PNG EXIF Data
New language parameter
^^^^^^^^^^^^^^^^^^^^^^
These text-rendering functions now accept a ``language`` parameter to request
language-specific glyphs and ligatures from the font:
* ``ImageDraw.ImageDraw.multiline_text()``
* ``ImageDraw.ImageDraw.multiline_textsize()``
* ``ImageDraw.ImageDraw.text()``
* ``ImageDraw.ImageDraw.textsize()``
* ``ImageFont.ImageFont.getmask()``
* ``ImageFont.ImageFont.getsize_multiline()``
* ``ImageFont.ImageFont.getsize()``
PNG EXIF data
^^^^^^^^^^^^^
EXIF data can now be read from and saved to PNG images. However, unlike other image
@ -145,4 +145,5 @@ Pillow can now read uncompressed RGB data from DDS images.
Reading TIFF with old-style JPEG compression
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Added support reading TIFF files with old-style JPEG compression through LibTIFF. All YCbCr TIFF images are now always read as RGB.
Added support reading TIFF files with old-style JPEG compression through LibTIFF. All YCbCr
TIFF images are now always read as RGB.