{"id":14381,"date":"2022-08-28T15:54:03","date_gmt":"2022-08-28T15:54:03","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=14381"},"modified":"2024-02-16T10:35:24","modified_gmt":"2024-02-16T10:35:24","slug":"exiftool-example","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=14381","title":{"rendered":"Slideshow with shown title (ExifTool + IrfanView)"},"content":{"rendered":"<p>The images are named &#8216;&lt;year&gt; &lt;idx&gt; &#8211; &lt;description&gt;.jpg&#8217;. But there is no Title set in the metadata yet. IrfanView supports EXIF and IPTC, but not XMP for now. So let&#8217;s use the EXIF Title called XPTitle.<\/p>\n<hr>\n<p><strong>1. Write the XPTitle<\/strong> (with ExifTool)<\/p>\n<pre>\r\nexiftool.exe '-exif:XPTitle<${basename;s\/^.*( - )\/\/}' -overwrite_original .\r\n<\/pre>\n<p><u>Explanation of the command<\/u><\/p>\n<ul>\n<li>'basename' ... The name of the image without the extension (e.g. '.jpg').<\/li>\n<li>'s\/^.*( - )\/\/' ... Perl regex to remove a specific pattern from the basename.<\/li>\n<\/ul>\n<p><i>Hints<\/i><br \/>\n- Use single quotes (') around arguments containing a dollar sign ($).<br \/>\n- If you use '-title' instead of '-exif:XPTitle' it writes '-xmp-dc:Title'.<br \/>\n- If you add the Title via Windows properties it writes it at multiple tags.<sup>1<\/sup><\/p>\n<p><sup>1<\/sup> EXIF (XPTitle, ImageDescription), IPTC (Caption-Abstract) and XMP (Title, Description)<\/p>\n<p><u>Explanation of the regex<\/u><\/p>\n<ul>\n<li>'s\/\/\/' ... Substitution<\/li>\n<li>'^' ... Start of the line<\/li>\n<li>'.' ... Any character<\/li>\n<li>'*' ... 0 until n times<\/li>\n<li>'( - )' ... Pattern: ' - '<\/li>\n<\/ul>\n<hr>\n<p><strong>2. Show the XPTitle<\/strong> (with IrfanView)<\/p>\n<p>1. Open the Slideshow window ('File' --> 'Slideshow...')<br \/>\n2. Add the images (Browse, then 'Add' \/ 'Add all')<br \/>\n3. Modify the shown text (Mark 'Show Text:' and enter \"$E40091\")<br \/>\n4. Start the Slideshow ('Play Slideshow')<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The images are named &#8216;&lt;year&gt; &lt;idx&gt; &#8211; &lt;description&gt;.jpg&#8217;. But there is no Title set in the metadata yet. IrfanView supports<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[40],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/14381"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14381"}],"version-history":[{"count":1,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/14381\/revisions"}],"predecessor-version":[{"id":16798,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/14381\/revisions\/16798"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14381"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}