Pillow/docs/releasenotes/4.3.0.rst

55 lines
1.7 KiB
ReStructuredText
Raw Normal View History

4.3.0
-----
Get One Channel From Image
2017-08-12 14:22:36 +03:00
==========================
New method :py:meth:`PIL.Image.Image.getchannel` added.
It returns single channel by index or name. For example,
2017-09-06 06:30:22 +03:00
``image.getchannel("A")`` will return alpha channel as separate image.
2017-08-26 18:19:04 +03:00
``getchannel`` should work up to 6 times faster than ``image.split()[0]``
in previous Pillow versions.
2017-08-26 18:19:04 +03:00
Partial Resampling
==================
2017-09-09 13:29:49 +03:00
Added new argument ``box`` for :py:meth:`PIL.Image.Image.resize`. This
argument defines a source rectangle from within the source image to be
resized. This is very similar to the ``image.crop(box).resize(size)``
sequence except that ``box`` can be specified with subpixel accuracy.
2017-08-26 18:19:04 +03:00
Loading 16-bit TIFF Images
==========================
Pillow now can read 16-bit multichannel TIFF files including files
2017-09-09 13:29:49 +03:00
with alpha transparency. The image data is truncated to 8-bit
precision.
2017-08-26 18:19:04 +03:00
Performance
===========
2017-09-09 13:29:49 +03:00
This release contains several performance improvements:
2017-08-26 18:19:04 +03:00
* Many memory bandwidth-bounded operations such as crop, image allocation,
2017-09-09 13:29:49 +03:00
conversion, split into bands and merging from bands are up to 2x faster.
2017-08-26 18:19:04 +03:00
* Upscaling of multichannel images (such as RGB) is accelerated by 5-10%
2017-09-09 13:29:49 +03:00
* JPEG loading is accelerated up to 15% and JPEG saving up to 20% when
using a recent version of libjpeg-turbo.
2017-08-26 18:19:04 +03:00
2017-09-09 13:29:49 +03:00
Core Image API Changes
======================
These are internal functions that should not have been used by user
code, but they were accessible from the python layer.
Debugging code within ``Image.core.grabclipboard`` was removed. It had been
marked as ``will be removed in future versions`` since PIL. When enabled, it
identified the format of the clipboard data.
2017-08-26 18:19:04 +03:00
2017-09-09 13:29:49 +03:00
The ``PIL.Image.core.copy`` and ``PIL.Image.Image.im.copy2`` methods
have been removed.