Skip to content

Commit 54c5b53

Browse files
committed
Added release notes for python-pillow#8286
1 parent 8d50840 commit 54c5b53

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/releasenotes/11.0.0.rst

+11-3
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,18 @@ TODO
103103
API Additions
104104
=============
105105

106-
TODO
107-
^^^^
106+
Writing XMP bytes to JPEG and MPO
107+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108108

109-
TODO
109+
XMP data can now be saved to JPEG files using an ``xmp`` argument::
110+
111+
im.save("out.jpg", xmp=b"test")
112+
113+
The data can also be set through :py:attr:`~PIL.Image.Image.info`, for use when saving
114+
either JPEG or MPO images::
115+
116+
im.info["xmp"] = b"test"
117+
im.save("out.jpg")
110118

111119
Other Changes
112120
=============

0 commit comments

Comments
 (0)