Skip to content

Commit

Permalink
Merge pull request #6784 from radarhere/jpeg_comment
Browse files Browse the repository at this point in the history
Added releases notes for #6774
  • Loading branch information
mergify[bot] authored Dec 7, 2022
2 parents 4704cab + bef128b commit 4c9ed12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:

.. versionadded:: 2.5.0

**comment**
A comment about the image.

.. versionadded:: 9.4.0


.. note::

Expand Down
8 changes: 8 additions & 0 deletions docs/releasenotes/9.4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ getxmp()
`XMP data <https://en.wikipedia.org/wiki/Extensible_Metadata_Platform>`_ can now be
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
========

Expand Down

0 comments on commit 4c9ed12

Please sign in to comment.