{"id":1105,"date":"2013-01-01T08:04:09","date_gmt":"2013-01-01T13:04:09","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=1105"},"modified":"2013-01-01T18:21:39","modified_gmt":"2013-01-01T23:21:39","slug":"modifying-exif-data-in-canon-raw-cr2-files","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=1105","title":{"rendered":"Modifying Exif Data in Canon RAW (CR2) Files"},"content":{"rendered":"<p>I just got back from Israel and have about 1,200 pictures with an EST (UTC-5) timestamp that should have an IST (UTC+2) timestamp because I forgot to change my camera&#8217;s time.  There&#8217;s a  utility called <a href=\"http:\/\/www.sno.phy.queensu.ca\/~phil\/exiftool\/\">ExifTool<\/a> that can read and write the Exif (Exchangeable Image File) format embedded in the Canon Raw images with CR2 extensions.  It&#8217;s available on Ubuntu in the libimage-exiftool-perl package.  To change the dates, run<br \/>\nexiftool -AllDates+=<em>HH:MM<\/em> <em>FILES.CR2<\/em>.<br \/>\nIn my case, my camera&#8217;s clock was 16 minutes fast and I had to shift the time ahead by seven hours, so I used<br \/>\n<code>exiftool -AllDates+=6:44 *.CR2<\/code><\/p>\n<p>This renamed each file to <em>file<\/em>.CR2_original and replaced the original with the updated Exif data.  Unfortunately, the new file has the current modification time.  I should have used the -P option.  To fix this, I ran (in Bash):<br \/>\n<code>for FILE in *.CR2; do touch -r ${FILE}_original ${FILE}; done<\/code><\/p>\n<p>Alternately, I could have had Exiftool not rename the originals, but put the updated copies in another directory:<br \/>\n<code>exiftool -P -AllDates+=6:44 -o ..\/from-camera-with-corrected-times *.CR2<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just got back from Israel and have about 1,200 pictures with an EST (UTC-5) timestamp that should have an IST (UTC+2) timestamp because I forgot to change my camera&#8217;s time. There&#8217;s a utility called ExifTool that can read and write the Exif (Exchangeable Image File) format embedded in the Canon Raw images with CR2 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1105","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1105"}],"version-history":[{"count":9,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1105\/revisions"}],"predecessor-version":[{"id":1110,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1105\/revisions\/1110"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}