Pillow/docs/releasenotes/3.4.0.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.9 KiB
ReStructuredText
Raw Normal View History

2016-07-18 02:39:29 +03:00
3.4.0
-----
New resizing filters
====================
Two new filters available for ``Image.resize()`` and ``Image.thumbnail()``
functions: ``BOX`` and ``HAMMING``. ``BOX`` is the high-performance filter with
two times shorter window than ``BILINEAR``. It can be used for image reduction
2017-05-29 12:42:06 +03:00
3 and more times and produces a sharper result than ``BILINEAR``.
2016-07-18 02:39:29 +03:00
``HAMMING`` filter has the same performance as ``BILINEAR`` filter while
providing the image downscaling quality comparable to ``BICUBIC``.
Both new filters don't show good quality for the image upscaling.
2016-10-03 17:05:03 +03:00
Deprecation Warning when Saving JPEGs
=====================================
JPEG images cannot contain an alpha channel. Pillow prior to 3.4.0
silently drops the alpha channel. With this release Pillow will now
2023-11-01 21:18:25 +03:00
issue a :py:exc:`DeprecationWarning` when attempting to save a ``RGBA`` mode
2017-02-27 02:04:12 +03:00
image as a JPEG. This will become an error in Pillow 4.2.
2016-10-03 17:05:03 +03:00
New DDS Decoders
================
2017-05-29 12:42:06 +03:00
Pillow can now decode DXT3 images, as well as the previously supported
2016-10-03 17:05:03 +03:00
DXT1 and DXT5 formats. All three formats are now decoded in C code for
better performance.
Append images to GIF
====================
Additional frames can now be appended when saving a GIF file, through the
``append_images`` argument. The new frames are passed in as a list of images,
which may be have multiple frames themselves.
Note that the ``append_images`` argument is only used if ``save_all`` is also
in effect, e.g.::
im.save(out, save_all=True, append_images=[im1, im2, ...])
2016-10-03 17:05:03 +03:00
Save multiple frame TIFF
========================
2017-05-29 12:42:06 +03:00
Multiple frames can now be saved in a TIFF file by using the ``save_all`` option.
2016-10-03 17:05:03 +03:00
e.g.::
im.save("filename.tiff", format="TIFF", save_all=True)
Image.core.open_ppm removed
===========================
The nominally private/debugging function ``Image.core.open_ppm`` has
been removed. If you were using this function, please use
``Image.open`` instead.