Sunday, November 17, 2013

Fixing camera date taken time for pictures with PowerShell

I found a great page that for fixing the times of pictures that were taken with a camera. My problem was that I had two cameras that took pictures at the same time and I wanted to throw the pictures in a time-sequenced single place. The cameras were 49  minutes apart, so I had to fix them.

http://chrisjwarwick.wordpress.com/2011/10/31/reading-and-changing-exif-photo-times-with-powershell/

Is a  3 part series that shows how someone else did the same thing. My simple steps were:


  1. Download the ExifDateTime.ps1 script
  2. Start a powershell window
  3. Make sure you've run Set-ExecutionPolicy RemoteSigned and cleared the "remote" property to allow the script to be run with File > Properties
  4. Run command 
    1. import-module "./ExifDateTime.ps1"
    2. gci IMG*.jpg | Update-ExifDateTaken -Offset '-0:49:00' -PassThru|ft Path, ExifDateTaken
This fixes the times of all the IMG*.jpg files in my directory.

Later, I found there are other solutions out there if you search for Exif Date Time. In particular, I found ExifTool that allows a similar command that changes the time offset for pictures.

No comments:

Post a Comment