Releases: LeoHsiao1/pyexiv2
Releases · LeoHsiao1/pyexiv2
v2.7.1
v2.7.0
Add four features:
-
Convert XMP tag of type LangAlt to a dict.
Old version:>>> img.read_xmp()['Xmp.dc.title'] 'lang="x-default" test-中文-, lang="de-DE" Hallo, Welt'
Now:
>>> img.read_xmp()['Xmp.dc.title'] {'lang="x-default"': 'test-中文-', 'lang="de-DE"': 'Hallo, Welt'}
-
Add Image.get_mime_type()
>>> img.get_mime_type() 'image/jpeg'
-
Add Image.get_access_mode()
>>> img.get_access_mode() {'exif': 'read+write', 'iptc': 'read+write', 'xmp': 'read+write', 'comment': 'read+write'}
-
Add registerNs()
>>> img.modify_xmp({'Xmp.test.mytag1': 'Hello'}) RuntimeError: No namespace info available for XMP prefix `test' >>> pyexiv2.registerNs('a namespace for test', 'Ns1') >>> img.modify_xmp({'Xmp.Ns1.mytag1': 'Hello'}) >>> img.read_xmp()['Xmp.Ns1.mytag1'] 'Hello'
See the Tutorial for details.
v2.6.4
v2.6.3
v2.6.2
Changes from v2.5.0:
- Add API:
See the Tutorial for details.
pyexiv2.Image.modify_raw_xmp() pyexiv2.enableBMFF()
- Change the way to delete a tag.
Previously, it was assigning an empty string. For example:
img.modify_xmp({"Xmp.xmp.Rating": ""})
Now, assignNone
instead. For example:
img.modify_xmp({"Xmp.xmp.Rating": None})
- Upgrade the exiv2 version used by pyexiv2 to
0.27.4
.
So compatibility with Linux and MacOS has changed. See the Tutorial for details.
v2.5.0
-
Automatically convert some EXIF tags from UCS2 encoding to UTF-8 encoding.
For example, the previous effect:
>>> img.read_exif()['Exif.Image.XPKeywords'] '116 0 101 0 115 0 116 0 0 0'
The current effect:
>>> img.read_exif()['Exif.Image.XPKeywords'] 'test\x00'
-
Automatically convert some IPTC tags to List type, even if they do not have multiple values.
For example, the previous effect:
>>> img.modify_iptc({'Iptc.Application2.Keywords': 'tag1'}) >>> img.read_iptc()['Iptc.Application2.Keywords'] 'tag1'
The current effect:
>>> img.read_iptc()['Iptc.Application2.Keywords'] ['tag1']
v2.4.1
- Add APIs to handle comment embedded in images:
read_comment()
,modify_comment()
,clear_comment()
- Add APIs to handle ICC Profile embedded in images:
read_icc()
,modify_icc()
,clear_icc()
- Make test cases more rigorous.
- Make the wheel package for different platforms separately.