{"id":9299,"date":"2022-08-27T22:23:00","date_gmt":"2022-08-28T03:23:00","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=9299"},"modified":"2022-08-29T16:11:19","modified_gmt":"2022-08-29T21:11:19","slug":"managing-photos","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=9299","title":{"rendered":"Managing Photos"},"content":{"rendered":"\n<p>We have a lot of photos &#8212; I expect that is true of most people. When taking a picture required someone to make sure there was a roll of film in the camera, take a picture, and then develop (or get developed) the pictures? We didn&#8217;t have that many pictures &#8212; my family, I recall, had a pile of undeveloped film and a few albums of photos. With the advent of digital photography, I took a lot more pictures. But it was still a manageable quantity. With smart phones &#8212; a camera available any time you have half a thought to record something for posterity? We have a <em>lot<\/em> of pictures. 264 already this month, 4727 last year! And then we have <em>movies<\/em>. While it is awesome to be able to preserve all of these memories, it&#8217;s also impossible to <em>find<\/em> anything. Ideally, you could search for files tagged with &#8216;garden&#8217; and find all of the garden pictures. <\/p>\n\n\n\n<p>Which brought us to a quest for a <em>good<\/em> photo and video tagging application. Haven&#8217;t found one yet, but I have discovered that a <em>lot<\/em> of applications use their own database. Dolphin stores its tags in <a rel=\"noreferrer noopener\" href=\"https:\/\/userbase.kde.org\/Baloo\" target=\"_blank\">Balloo<\/a> &#8212; I remember encountering something similar with Windows Media Player and a shared music library &#8212; we thought we were making changes that would be visible to everyone, but the changes didn&#8217;t even persist if you blew away your local store and repopulated your library. I&#8217;ve found apps with sqlite, ones with an external MySQL server, etc &#8212; but it&#8217;s something that locks you into their application. A few (DigiKam) have a feature to sync <em>their<\/em> data over to the image metadata, which (I think) will have to suffice.  <\/p>\n\n\n\n<p>Worse still, I haven&#8217;t identified any reasonable consistency to where metadata is stored &#8212; when you add &#8216;tags&#8217; in the Windows File Explorer, the tags appear in &#8220;Subject&#8221;, &#8220;LastKeywordXMP&#8221;, and &#8220;XPKeywords&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-Windows.png\"><img loading=\"lazy\" decoding=\"async\" width=\"290\" height=\"189\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-Windows.png\" alt=\"\" class=\"wp-image-9298\"\/><\/a><figcaption>Windows image tags in EXIF data<\/figcaption><\/figure>\n\n\n\n<p>Tags written in DigiKam application, however, don&#8217;t appear anywhere in the metadata by default&#8211; it&#8217;s all hidden stuff in the DigiKam database. Since we <em>have<\/em> SQL servers, we <em>could<\/em> just share a database for tagging our images. But that seems silly since the file metadata already has places to include these images. I could write something that reads from the SQL tables and uses something like exiftool to write the file metadata. Fortunately, there is a configuration option to actually write the tags into the metadata:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-SyncTagsToMetadata.png\"><img loading=\"lazy\" decoding=\"async\" width=\"807\" height=\"635\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-SyncTagsToMetadata.png\" alt=\"\" class=\"wp-image-9300\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-SyncTagsToMetadata.png 807w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-SyncTagsToMetadata-300x236.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-SyncTagsToMetadata-768x604.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-SyncTagsToMetadata-750x590.png 750w\" sizes=\"auto, (max-width: 807px) 100vw, 807px\" \/><\/a><figcaption>Include tags when writing to metadata<\/figcaption><\/figure>\n\n\n\n<p>Now tags are written into IPTC &#8220;Keywords&#8221; as well as XMP CatalogSets, Categories, HeirarchicalSubject, LastKeywordXMP, Subject, and TagList. Which is sufficient for Windows to display <em>something<\/em> in the &#8220;tags&#8221; column. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-Tag.png\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"270\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-DigiKam-Tag.png\" alt=\"\" class=\"wp-image-9301\"\/><\/a><\/figure>\n\n\n\n<p>Tags written in Darkroom can be stored in a sidecar file &#8212; which is messy, adds to the backup requirements, and generally doesn&#8217;t <em>work<\/em> for me. <\/p>\n\n\n\n<p>GThumbs lets you multi-select across a directory and bulk-add tags. These get added to IPTC Keywords and XML Keywords &#8212; which <em>do<\/em> show up in the &#8220;Tags&#8221; column of Windows Explorer. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-gthumb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"293\" height=\"220\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/08\/ImageTagging-gthumb.png\" alt=\"\" class=\"wp-image-9306\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>We have a lot of photos &#8212; I expect that is true of most people. When taking a picture required someone to make sure there was a roll of film in the camera, take a picture, and then develop (or get developed) the pictures? We didn&#8217;t have that many pictures &#8212; my family, I recall, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1723],"tags":[1726,1724,1725,1727],"class_list":["post-9299","post","type-post","status-publish","format-standard","hentry","category-family","tag-data-management","tag-image-management","tag-photo-management","tag-tagging"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/9299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9299"}],"version-history":[{"count":3,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/9299\/revisions"}],"predecessor-version":[{"id":9308,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/9299\/revisions\/9308"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}