mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #2126 from radarhere/docs
Added release notes and improved documentation for append_images
This commit is contained in:
commit
ac9f0403d9
|
@ -104,8 +104,10 @@ Saving sequences
|
||||||
When calling :py:meth:`~PIL.Image.Image.save`, if a multiframe image is used,
|
When calling :py:meth:`~PIL.Image.Image.save`, if a multiframe image is used,
|
||||||
by default only the first frame will be saved. To save all frames, the
|
by default only the first frame will be saved. To save all frames, the
|
||||||
``save_all`` parameter must be present and set to ``True``. To append
|
``save_all`` parameter must be present and set to ``True``. To append
|
||||||
additional frames when saving, the ``append_images`` parameter can be set to a
|
additional frames when saving, the ``append_images`` parameter works with
|
||||||
list of images containing the extra frames.
|
``save_all`` to append a list of images containing the extra frames::
|
||||||
|
|
||||||
|
im.save(out, save_all=True, append_images=[im1, im2, ...])
|
||||||
|
|
||||||
If present, the ``loop`` parameter can be used to set the number of times
|
If present, the ``loop`` parameter can be used to set the number of times
|
||||||
the GIF should loop, and the ``duration`` parameter can set the number of
|
the GIF should loop, and the ``duration`` parameter can set the number of
|
||||||
|
|
|
@ -13,3 +13,16 @@ two times shorter window than ``BILINEAR``. It can be used for image reduction
|
||||||
``HAMMING`` filter has the same performance as ``BILINEAR`` filter while
|
``HAMMING`` filter has the same performance as ``BILINEAR`` filter while
|
||||||
providing the image downscaling quality comparable to ``BICUBIC``.
|
providing the image downscaling quality comparable to ``BICUBIC``.
|
||||||
Both new filters don't show good quality for the image upscaling.
|
Both new filters don't show good quality for the image upscaling.
|
||||||
|
|
||||||
|
|
||||||
|
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, ...])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user