Skip to content

Commit

Permalink
Merge pull request #2144 from wiredfool/release-notes
Browse files Browse the repository at this point in the history
Release notes & docs
  • Loading branch information
wiredfool authored Oct 3, 2016
2 parents 90b1d68 + 69ff457 commit 8693afc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ Saving Tiff Images

The :py:meth:`~PIL.Image.Image.save` method can take the following keyword arguments:

**save_all**
If true, Pillow will save all frames of the image to a multiframe tiff document.

.. versionadded:: 3.4.0

**tiffinfo**
A :py:class:`~PIL.TiffImagePlugin.ImageFileDirectory_v2` object or dict
object containing tiff tags and values. The TIFF field type is
Expand Down Expand Up @@ -659,9 +664,10 @@ DDS

DDS is a popular container texture format used in video games and natively
supported by DirectX.
Currently, only DXT1 and DXT5 pixel formats are supported and only in ``RGBA``
Currently, DXT1, DXT3, and DXT5 pixel formats are supported and only in ``RGBA``
mode.

.. versionadded:: 3.4.0 DXT3

FLI, FLC
^^^^^^^^
Expand Down
29 changes: 29 additions & 0 deletions docs/releasenotes/3.4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ two times shorter window than ``BILINEAR``. It can be used for image reduction
providing the image downscaling quality comparable to ``BICUBIC``.
Both new filters don't show good quality for the image upscaling.

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
issue a ``DeprecationWarning`` when attempting to save a ``RGBA`` mode
image as a JPEG. This will become an error in Pillow 3.7.

New DDS Decoders
================

Pillow can now decode DXT3 images, as well as the previously support
DXT1 and DXT5 formats. All three formats are now decoded in C code for
better performance.

Append images to GIF
====================
Expand All @@ -26,3 +40,18 @@ 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, ...])

Save multiple frame TIFF
========================

Multiple frames can now be saved in a TIFF file by using the ``save_all`` option.
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.

0 comments on commit 8693afc

Please sign in to comment.