Project

General

Profile

Modifying XMP sidecar metadata

Added by Damon Lynch almost 10 years ago

Hi Andreas,

Using exiv2 0.22, a command like this works only if the value is not already set:

exiv2 mo -M 'set Xmp.photoshop.State Minnesota' 20110705-1826-16-iso100-f8.0-14mm-25.xmp

If the value is already set, the existing value is not changed. This command has no effect:

exiv2 mo -M 'del Xmp.photoshop.State' 20110705-1826-16-iso100-f8.0-14mm-25.xmp

Is this a bug? Or am I using the program incorrectly?

Damon


Replies (1)

RE: Modifying XMP sidecar metadata - Added by Andreas Huggel almost 10 years ago

Exiv2 does some automatic conversions from XMP to IPTC and Exif when reading the metadata from a sidecar and the other way on writing. That's why, if you check the metadata after setting Xmp.photoshop.State, you'll notice it also contains an IPTC dataset Iptc.Application2.ProvinceState. To get rid of it, you need to delete both in one go:

exiv2 -M'del Xmp.photoshop.State' -M'del Iptc.Application2.ProvinceState' sidecar.xmp

Andreas

    (1-1/1)