Skip to content

Commit 29c340d

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

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

docs/releasenotes/11.0.0.rst

+14-4
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,20 @@ TODO
103103
API Additions
104104
=============
105105

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

111121
Other Changes
112122
=============

0 commit comments

Comments
 (0)