{"id":263,"date":"2017-09-26T12:31:04","date_gmt":"2017-09-26T10:31:04","guid":{"rendered":"http:\/\/giveback.danielmenzel.de\/?p=263"},"modified":"2017-09-26T12:47:39","modified_gmt":"2017-09-26T10:47:39","slug":"eigenes-iptc-feld-mit-exiftool","status":"publish","type":"post","link":"http:\/\/giveback.danielmenzel.de\/?p=263","title":{"rendered":"Eigenes IPTC-Feld mit exiftool  \/ Metadaten in Bildern"},"content":{"rendered":"<p>M\u00f6chte man ein eigenes IPTC-Feld in seinen Metadaten \u00a0in Bildern definieren geht das mit &#8222;exiftool&#8220; sehr einfach.<!--more--><\/p>\n<p>Beispiel:<\/p>\n<pre>%Image::ExifTool::UserDefined = (\r\n# IPTC tags are added to a specific record type (eg. application record):\r\n # (Note: IPTC tag ID's are limited to the range 0-255)\r\n 'Image::ExifTool::IPTC::ApplicationRecord' =&gt; {\r\n # Example 4. IPTC:EigenesFeld\r\n 160 =&gt; {\r\n Name =&gt; 'EigenesFeld',\r\n Format =&gt; 'string[0,160]',\r\n },\r\n # add more user-defined IPTC ApplicationRecord tags here...\r\n },\r\n);<\/pre>\n<p>Das oben zu sehende Beispiel packt man dann in eine Datei z.B. exiftool.cfg und kann dann das neue IPTC-Feld beschreiben oder lesen:<\/p>\n<pre>exiftool -config exiftool.cfg \u00a0-EigenesFeld=\"Das soll drin stehen\" Dateiname.jpg\r\n\r\nexiftool -config exiftool.cfg -s -EigenesFeld Dateiname.jpg<\/pre>\n<p>ACHTUNG: Anders als bei einem eigenen XMP-Feld _muss_ auch beim Auslesen die Config-Datei immer mit angegeben werden.<\/p>\n<p><a href=\"http:\/\/giveback.danielmenzel.de\/?p=259\">Somit ist das XMP-Feature deutlich dem IPTC-Ansatz \u00fcberlegen.<\/a><\/p>\n<p>Soll das Config-File nicht immer angegeben werden, hat man zwei M\u00f6glichkeiten:<\/p>\n<ol>\n<li>User-definiert: \u00a0Das Config-File muss im User-Homeverzeichnis als &#8222;.ExifTool_config&#8220; stehen<\/li>\n<li>Systemweit: Das Config-File muss im Progammverzeichnis von exiftool als &#8222;.ExifTool_config&#8220; stehen. Wo das ist bekommt man ganz einfach mit &#8222;which exiftool&#8220; heraus.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Create custom IPTC Field exiftool<\/p>\n","protected":false},"excerpt":{"rendered":"<p>M\u00f6chte man ein eigenes IPTC-Feld in seinen Metadaten \u00a0in Bildern definieren geht das mit &#8222;exiftool&#8220; sehr einfach.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20,7],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-bilder","category-exif","category-linux"],"_links":{"self":[{"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":5,"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":274,"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/274"}],"wp:attachment":[{"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/giveback.danielmenzel.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}