Releases: LeoHsiao1/pyexiv2
Releases · LeoHsiao1/pyexiv2
v2.12.0
v2.11.0
- [feature] add four functions:
See the tutorial for details
def convert_exif_to_xmp(data: dict, encoding='utf-8') -> dict def convert_iptc_to_xmp(data: dict, encoding='utf-8') -> dict def convert_xmp_to_exif(data: dict, encoding='utf-8') -> dict def convert_xmp_to_iptc(data: dict, encoding='utf-8') -> dict
v2.9.0
v2.8.3
v2.8.2
v2.8.1
v2.8.0
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.