Skip to content

Commit 124d06f

Browse files
committed
Added release notes for python-pillow#8483
1 parent d008d12 commit 124d06f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

docs/releasenotes/11.1.0.rst

+20-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,26 @@ TODO
1717
Backwards Incompatible Changes
1818
==============================
1919

20-
TODO
21-
^^^^
20+
Writing XMP bytes to JPEG and MPO
21+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22+
23+
Pillow 11.0.0 added writing XMP data to JPEG and MPO images::
24+
25+
im.info["xmp"] = b"test"
26+
im.save("out.jpg")
27+
28+
However, this meant that XMP data was automatically kept from an opened image,
29+
which is inconsistent with the rest of Pillow's behaviour. This functionality
30+
has been removed. To write XMP data, the ``xmp`` argument can still be used for
31+
JPEG files::
32+
33+
im.save("out.jpg", xmp=b"test")
34+
35+
To save XMP data to the second frame of an MPO image, ``encoderinfo`` can now
36+
be used::
37+
38+
second_im.encoderinfo = {"xmp": b"test"}
39+
im.save("out.mpo", save_all=True, append_images=[second_im])
2240

2341
Deprecations
2442
============

0 commit comments

Comments
 (0)