File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 17
17
Backwards Incompatible Changes
18
18
==============================
19
19
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])
22
40
23
41
Deprecations
24
42
============
You can’t perform that action at this time.
0 commit comments