mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Added support for saving JPEG comments
This commit is contained in:
parent
4704cab1a1
commit
bef128b04b
|
@ -474,6 +474,11 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
|
||||||
|
|
||||||
.. versionadded:: 2.5.0
|
.. versionadded:: 2.5.0
|
||||||
|
|
||||||
|
**comment**
|
||||||
|
A comment about the image.
|
||||||
|
|
||||||
|
.. versionadded:: 9.4.0
|
||||||
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,14 @@ getxmp()
|
||||||
`XMP data <https://en.wikipedia.org/wiki/Extensible_Metadata_Platform>`_ can now be
|
`XMP data <https://en.wikipedia.org/wiki/Extensible_Metadata_Platform>`_ can now be
|
||||||
decoded for WEBP images through ``getxmp()``.
|
decoded for WEBP images through ``getxmp()``.
|
||||||
|
|
||||||
|
Writing JPEG comments
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
When saving a JPEG image, a comment can now be written from
|
||||||
|
:py:attr:`~PIL.Image.Image.info`, or by using an argument when saving::
|
||||||
|
|
||||||
|
im.save(out, comment="Test comment")
|
||||||
|
|
||||||
Security
|
Security
|
||||||
========
|
========
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user