Skip to content

Commit ae7110a

Browse files
committed
Added release notes [ci skip]
1 parent e12d504 commit ae7110a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/releasenotes/8.2.0.rst

+14
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,20 @@ separate histograms for each color channel, changing the tone of the image. The
112112
``preserve_tone`` argument keeps the tone unchanged by using one luminance histogram
113113
for all channels.
114114

115+
getxmp() for JPEG images
116+
^^^^^^^^^^^^^^^^^^^^^^^^
117+
118+
A new method has been added to return
119+
`XMP data <https://en.wikipedia.org/wiki/Extensible_Metadata_Platform>`_ for JPEG
120+
images. It reads the XML data into a dictionary of names and values.
121+
122+
For example::
123+
124+
>>> from PIL import Image
125+
>>> with Image.open("Tests/images/xmp_test.jpg") as im:
126+
>>> print(im.getxmp())
127+
{'RDF': {}, 'Description': {'Version': '10.4', 'ProcessVersion': '10.0', ...}, ...}
128+
115129
Security
116130
========
117131

0 commit comments

Comments
 (0)