How can I add structures?
I tried to add structures, but it don't work. It is possible to add them?
I use pyexiv 3.2 binaries for Windows (32 bit) with Python 2.7 and Windows 7.
Here is my code:
from __future__ import print_function, unicode_literals
import pyexiv2
def write_test():
m = pyexiv2.
m.read()
print('Initial XMP-Tags: ' + repr(m.xmp_keys))
register_
m[str(
m[str(
m[str(
print('Add some tags: ' + repr(m.xmp_keys))
m.write()
m = pyexiv2.
m.read()
print('Write and then read tags: ' + repr(m.xmp_keys))
if __name__ == '__main__':
write_test()
Output:
Initial XMP-Tags: ['Xmp.xmp.Label', 'Xmp.foo.bar']
Add some tags: ['Xmp.xmp.Label', 'Xmp.foo.bar', 'Xmp.foo.bar/bla', 'Xmp.xmpDM.
Write and then read tags: ['Xmp.xmp.Label', 'Xmp.foo.bar']
Exiv2 supports writing structures as shown in this example:
http://
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- pyexiv2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Philipp Brimmers for more information if necessary.