Hello everyone.
I am new to the forum but already using the Exiftool CLI for a while now. It's a fantastic tool. Thank you.
Now i am facing the following (maybe trivial problem):
I need to extract EXIF and IPTC Metadata from files and store it as a blob a database. The format needs to be XMP.
With regular exifttool Key/Value formatting and XML formatting, all tags are included correctly as expected.
But when i output the xmp format, some namespaces (i.e. Dublin Core) are missing in the output.
I use this command: exiftool -o -.xmp 3e251330.jpg
resulting in this out, which is in the correct format, but missing some information (xmp:dc):
<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 9.39'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about=''
xmlns:pdf='http://ns.adobe.com/pdf/1.3/'>
<pdf:Keywords>Wahlplakat</pdf:Keywords>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
<photoshop:Category>PL</photoshop:Category>
<photoshop:City>Hamburg</photoshop:City>
<photoshop:Credit>dpa</photoshop:Credit>
<photoshop:DateCreated>2013-09-19</photoshop:DateCreated>
<photoshop:Headline>Wahlplakate zur Bundestagswahl</photoshop:Headline>
<photoshop:Source>dpa</photoshop:Source>
<photoshop:SupplementalCategories>
<rdf:Bag>
<rdf:li>Wahlen</rdf:li>
<rdf:li>Bundestag</rdf:li>
<rdf:li>Politik</rdf:li>
<rdf:li>Parteien</rdf:li>
<rdf:li>Hamburg</rdf:li>
<rdf:li>#btw13</rdf:li>
<rdf:li>lno</rdf:li>
</rdf:Bag>
</photoshop:SupplementalCategories>
<photoshop:Urgency>4</photoshop:Urgency>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:tiff='http://ns.adobe.com/tiff/1.0/'>
<tiff:BitsPerSample>
<rdf:Seq>
<rdf:li>8</rdf:li>
</rdf:Seq>
</tiff:BitsPerSample>
<tiff:ImageLength>1806</tiff:ImageLength>
<tiff:ImageWidth>3000</tiff:ImageWidth>
<tiff:ResolutionUnit>2</tiff:ResolutionUnit>
<tiff:XResolution>300/1</tiff:XResolution>
<tiff:YCbCrSubSampling>
<rdf:Seq>
<rdf:li>1</rdf:li>
<rdf:li>1</rdf:li>
</rdf:Seq>
</tiff:YCbCrSubSampling>
<tiff:YResolution>300/1</tiff:YResolution>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
When using Adobes xmpcommand cli, all information is included (see below) but it got problems with the text encoding.
Thats why i'd like to use exiftool for the job.
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.1.2">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>
<rdf:Alt>
<rdf:li xml:lang="x-default">urn:newsml:dpa.com:20090101:130919-90-019108</rdf:li>
</rdf:Alt>
</dc:title>
<dc:subject>
<rdf:Bag>
<rdf:li>Wahlplakat</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>
<rdf:Alt>
<rdf:li xml:lang="x-default">Wahlplakate mit den Abbildung des SPD-Kanzlerkandidaten Peer Steinbr¸ck (l-r), Bundeskanzlerin Angela Merkel (CDU) und FDP-Spitzenkandidat Rainer Br¸derle stehen am 19.09.2013 in der Innenstadt von Hamburg. Rund 1,28 Millionen Hamburger sind am 22. September 2013 aufgerufen, sich an der Wahl des 18. Deutschen Bundestags zu beteiligen. Gleichzeitig kˆnnen sie in einem Volksentscheid ¸ber die Rekommunalisierung der Energienetze befinden. Foto: Christian Charisius/dpa (zu dpa "Fast 1,3 Millionen Hamburger zur Wahl aufgerufen" vom 20.09.2013) +++(c) dpa - Bildfunk+++</rdf:li>
</rdf:Alt>
</dc:description>
<dc:creator>
<rdf:Seq>
<rdf:li>Christian Charisius</rdf:li>
</rdf:Seq>
</dc:creator>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
<photoshop:Urgency>4</photoshop:Urgency>
<photoshop:Category>PL</photoshop:Category>
<photoshop:SupplementalCategories>
<rdf:Bag>
<rdf:li>Wahlen</rdf:li>
<rdf:li>Bundestag</rdf:li>
<rdf:li>Politik</rdf:li>
<rdf:li>Parteien</rdf:li>
<rdf:li>Hamburg</rdf:li>
<rdf:li>#btw13</rdf:li>
<rdf:li>lno</rdf:li>
</rdf:Bag>
</photoshop:SupplementalCategories>
<photoshop:DateCreated>2013-09-19</photoshop:DateCreated>
<photoshop:City>Hamburg</photoshop:City>
<photoshop:State>Hamburg</photoshop:State>
<photoshop:Country>Deutschland</photoshop:Country>
<photoshop:TransmissionReference>chc012</photoshop:TransmissionReference>
<photoshop:Headline>Wahlplakate zur Bundestagswahl</photoshop:Headline>
<photoshop:Credit>dpa</photoshop:Credit>
<photoshop:Source>dpa</photoshop:Source>
<photoshop:CaptionWriter>chc lre</photoshop:CaptionWriter>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/">
<Iptc4xmpCore:CountryCode>DEU</Iptc4xmpCore:CountryCode>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
What option am i missing to include all namespaces? I am mainly interested in xmp:dc and adobe-crs.
But i think any solution will be applicable to all other namespaces as well, right?!
Thanks in advance, looking forward to any helpful answer.
Jewe
Nevermind. I found a solution.
I enabled the write support with -use MWG
.
Looks good now.
Thanks anyway!
Also see the exif2xmp.args and iptc2xmp.args files in the arg_files directory of the full distribution for the arguments to convert EXIF and IPTC to XMP.
- Phil