Hey Damien & all,

Olivier Tilloy a écrit :
>> well, reading is a good start. how about reading from one file (either
>> sidecar or images) and writing the data (perhaps with changes) to a
>> new sidecar file?
> 
> That's not implemented yet, but would be nice to have indeed. Currently
> all pyexiv2 offers is writing back the metadata in-place.
> Can you file a bug report to track this feature request?

I've been thinking about this one, and a possible solution (disclaimer:
I haven't tested it) would be the following:

- open file A and read its metadata (may be an image or an XMP sidecar)
- write a "dummy" empty XMP sidecar to file B on disk
- open file B and read its metadata
- call A.copy(B, exif=False, iptc=False, xmp=True)
- call B.write()

Cheers,

Olivier

_______________________________________________
Mailing list: https://launchpad.net/~pyexiv2-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~pyexiv2-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to