{"id":11278,"date":"2019-07-09T07:31:37","date_gmt":"2019-07-09T05:31:37","guid":{"rendered":"http:\/\/flaven.fr\/?p=11278"},"modified":"2019-07-09T07:32:29","modified_gmt":"2019-07-09T05:32:29","slug":"image-metadata-dam-getting-metada-from-pictures","status":"publish","type":"post","link":"https:\/\/flaven.fr\/2019\/07\/image-metadata-dam-getting-metada-from-pictures\/","title":{"rendered":"Image, metadata, DAM &#8211; Getting metada from pictures"},"content":{"rendered":"<p>Since 6 months I am working on a new project: launching a new back office that should replace the previous one based on Drupal.<br \/>\nThe project was almost a wreck as we try to reproduce, a on a Symfony based application, what was previously existing even even features endorsing the worst habits!<\/p>\n<p>The main and unacknowledged objective was to copy the existing and previous tool and to focus on features that can be new and interesting. <\/p>\n<p>Like I usually say with a shrug: &#8220;Anyway&#8230;&#8221; to encourage my mind to move on and not to get stuck on what should have been done!<br \/>\nSo anyway, as somebody say &#8220;regret is a second mistake&#8221;.<\/p>\n<p><b>It was the occasion like always to discover again some elements both technical and editorial. As you may know, using a picture without credits is illegal when you are using a picture to illustrate a post, you need at minimum to declare the copyright and to ensure that you have the right to usage this image.<\/b><\/p>\n<p>Long time ago, I did a post about this subject. The concern is still the same, how can you leverage on EXIF metadata from pictures and populate the data inside a CMS for credits, description and title.<\/p>\n<p>At the time, I was using Photoshop and use WordPress to grab the data. This time I have been looking for open source tools to make.<\/p>\n<p>Here is 2 of the tools that have bee using :<\/p>\n<ol>\n<li>exiftool is a command line tool that allows you to change and manipulate the EXIF metadata of images.<\/li>\n<li>detox is a utility designed to clean up filenames. It replaces difficult to work with characters, such as spaces, with standard equivalents. It will also clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters in them (i.e: foo bar &#8211; quz.avi -> foo_bar-quz.avi).<\/li>\n<\/ol>\n<pre lang=\"bash\">\r\n#install tools with homebrew\r\nbrew install exiftool\r\nbrew install detox\r\n\r\n#renaming files inside a directory named photos\r\ndetox -r -v photos\/\r\n<\/pre>\n<pre lang=\"bash\">\r\n #go to path\r\ncd \/your-path-to-the-images\/_values_images\/\r\n\r\n#check infos\r\nexiftool -a -u -g1 000_1G87QJ_v1.jpg\r\n<\/pre>\n<p><b>The metadata output in the console<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2019\/07\/extract_values_images_1.jpg\" alt=\"Image, metadata, DAM - Getting metada from pictures\" width=\"585\" height=\"330\" \/><\/p>\n<pre lang=\"bash\">\r\n#check infos\r\nexiftool -T -createdate -aperture -shutterspeed -iso DIR > out.txt\r\n\r\n#check infos and output in a text file named out.txt\r\nexiftool -a -u -g1 000_1G87QJ_v1.jpg > out.txt\r\n<\/pre>\n<p><i>Source: <a href=\"https:\/\/arslan.io\/2018\/04\/18\/tips-tricks-to-batch-edit-exif-metadata-of-photos\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/arslan.io\/2018\/04\/18\/tips-tricks-to-batch-edit-exif-metadata-of-photos\/<\/a><\/i><\/p>\n<p><b>Conclusion: Indeed, it is a very good habit to grab EXIF from pictures. All these EXIF stuff is part of a true DAM (Digital Assets Management).  It is worth working around that question, especially if you are using images from Reuters, AFP, Getty or any photographic fund or archive. If done well, leveraging on EXIF will save much more time later when it is time to look for content inside your CMS. This is critical for a useful DAM.<\/b><\/p>\n<h2>Read more<\/h2>\n<ul>\n<li>Good article from Fatih Arslan &#8220;Tips &#038; tricks to batch edit EXIF metadata of photos&#8221;<br \/><a href=\"https:\/\/arslan.io\/2018\/04\/18\/tips-tricks-to-batch-edit-exif-metadata-of-photos\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/arslan.io\/2018\/04\/18\/tips-tricks-to-batch-edit-exif-metadata-of-photos\/<\/a><\/li>\n<li>List of Top Photo Metadata Editors<br \/><a href=\"https:\/\/www.linuxlinks.com\/photometadataeditors\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.linuxlinks.com\/photometadataeditors\/<\/a><\/li>\n<li>How to edit metadata via the command line with ExifTool<br \/><a href=\"https:\/\/libre-software.net\/edit-metadata-exiftool\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/libre-software.net\/edit-metadata-exiftool\/<\/a><\/li>\n<li>My previous post in french &#8220;Image, Metadonn\u00e9es, Metadata \u2013 Editer, supprimer, mettre \u00e0 jour des metadata sur des fichiers de photo&#8221;<br \/><a href=\"https:\/\/flaven.fr\/2010\/02\/image-metadonnees-metadata-editer-supprimer-mettre-a-jour-des-metadata-sur-des-fichiers-de-photo\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/flaven.fr\/2010\/02\/image-metadonnees-metadata-editer-supprimer-mettre-a-jour-des-metadata-sur-des-fichiers-de-photo\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Since 6 months I am working on a new project: launching a new back office that should replace the previous one based on Drupal. The&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/2019\/07\/image-metadata-dam-getting-metada-from-pictures\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">Image, metadata, DAM &#8211; Getting metada from pictures<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11280,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bf_ai_meta_description":"Launching a new back office with Symfony, extracting metadata from images, and improving digital asset management.","bf_ai_og_title":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3444,3448,3449,3451,3435],"tags":[2471,2469,2468,2470,2465,2472,569,285,2466,294,155,2467,700],"class_list":["post-11278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-databases","category-tools-productivity","category-tutorials-how-to","category-web-design-front-end","category-web-development","tag-afp","tag-dam","tag-detox","tag-digital-assets-management","tag-exiftool","tag-getty","tag-homebrew","tag-image","tag-metada","tag-metadata","tag-photoshop","tag-pictures","tag-reuters"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Vuhl-2VU","jetpack_featured_media_url":"https:\/\/flaven.fr\/wp-content\/uploads\/2019\/07\/extract_values_images_b.jpg","_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=11278"}],"version-history":[{"count":2,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11278\/revisions"}],"predecessor-version":[{"id":11282,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11278\/revisions\/11282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/11280"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=11278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/categories?post=11278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/tags?post=11278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}