pyexiv2-developers team mailing list archive
-
pyexiv2-developers team
-
Mailing list archive
-
Message #00008
Re: pyexiv2 0.2 testing
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
Follow ups
References