{"id":807,"date":"2013-11-30T23:28:06","date_gmt":"2013-11-30T15:28:06","guid":{"rendered":"http:\/\/www.ceh-photo.de\/blog\/?p=807"},"modified":"2013-11-30T23:28:06","modified_gmt":"2013-11-30T15:28:06","slug":"adjust-exif-timestamp-on-command-line-with-exiftool","status":"publish","type":"post","link":"https:\/\/www.ceh-photo.de\/blog\/?p=807","title":{"rendered":"Adjust exif timestamp on command-line with exiftool"},"content":{"rendered":"<p>I just realized that I forgot to change the timezone\/time settings in my camera since I am back from Asia (~6month). In order to fix the timestamp on all my photos I made during this time period I used\u00a0exiftool\u00a0for doing this on the command-line.<\/p>\n<p>Move all timestamps minus 6 hours for all picture files (JPG\u00a0and RAW) in current directory.<\/p>\n<div class=\"codecolorer-container bash default\" style=\"overflow:auto;white-space:nowrap;width:70%;\"><div class=\"bash codecolorer\">exiftool\u00a0-AllDates-=<span class=\"nu0\">6<\/span> .<\/div><\/div>\n<p>Check if everything is like expected and delete the backup copies in current directory:<\/p>\n<div class=\"codecolorer-container bash default\" style=\"overflow:auto;white-space:nowrap;width:70%;\"><div class=\"bash codecolorer\">exiftool\u00a0-delete_original .<\/div><\/div>\n<p>Because I am working with\u00a0Corel\u00a0AfterShot\u00a0(former\u00a0Bibble) I had another problem.\u00a0AfterShot\u00a0is dumping the timestamps for all adjusted files into the\u00a0xmp\u00a0file and is also using these timestamps as first choice for displaying inside the application. But I figured out, that this information in not required and I just\u00a0deleted\u00a0it from the\u00a0xmp\u00a0file with\u00a0sed.<\/p>\n<p>Delete timestamp lines from mentioned files for all\u00a0xmp\u00a0files in current directory:<\/p>\n<div class=\"codecolorer-container bash default\" style=\"overflow:auto;white-space:nowrap;width:70%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sed<\/span>\u00a0-i <span class=\"re5\">-E<\/span> <span class=\"st_h\">'\/.*bopt:Date|DigitizedDateTime*\/d'<\/span> <span class=\"sy0\">*<\/span>.xmp<\/div><\/div>\n<p>Actually a simple operation, but maybe helpful for someone else.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just realized that I forgot to change the timezone\/time settings in my camera since I am back from Asia (~6month). In order to fix the timestamp on all my photos I made during this time period I used\u00a0exiftool\u00a0for doing this on the command-line. Move all timestamps minus 6 hours for all picture files (JPG\u00a0and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[39,114,40],"class_list":["post-807","post","type-post","status-publish","format-standard","hentry","category-photography","tag-bash","tag-exif","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=807"}],"version-history":[{"count":0,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/807\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}