Add four features:
- Convert XMP tag of type LangAlt to a dict.
Old version:
py
>>> img.read_xmp()['Xmp.dc.title']
'lang="x-default" test-中文-, lang="de-DE" Hallo, Welt'
Now:
py
>>> img.read_xmp()['Xmp.dc.title']
{'lang="x-default"': 'test-中文-', 'lang="de-DE"': 'Hallo, Welt'}
- Add Image.get_mime_type()
py
>>> img.get_mime_type()
'image/jpeg'
- Add Image.get_access_mode()
py
>>> img.get_access_mode()
{'exif': 'read+write', 'iptc': 'read+write', 'xmp': 'read+write', 'comment': 'read+write'}
- Add registerNs()
py
>>> 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](https://github.com/LeoHsiao1/pyexiv2/blob/master/docs/Tutorial.md) for details.