I am curious to know whether it is possible to create a custom namespace for the XMP Dublin Core metadata?
For example If I want to add a tag like mytest
I can write the XMP Metadata standard tags such as description
however I can't write my own tag
~/$ exiftool -xmp-dc:description="Foo" demo.png
1 image files updated
~/$ exiftool -xmp-dc:mytest="Bar" demo.png
Warning: Tag 'mytest' does not exist
Nothing to do.
The XMP namespaces define a set of properties. In any given XMP Packet, a property may be absent or present. For any given XMP, there is no requirement that all properties from a given namespace must be present.
Description. XMP is a labelling technology that allows you to embed data about a file, as metadata, into the file itself.
Yes. Defining custom XMP tags and namespaces in ExifTool is done via user-defined tags in a config file. For example:
~/$ exiftool -config my.config -xmp-dc:mytest="Bar" demo.png
1 image files updated
~/$ exiftool -xmp-dc:mytest demo.png
Mytest : Bar
~/$ cat my.config
%Image::ExifTool::UserDefined = (
'Image::ExifTool::XMP::dc' => {
mytest => { },
},
);
# end
See the sample ExifTool config file for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With