ExifTool Forum

ExifTool => Newbies => Topic started by: photoj on October 22, 2024, 03:08:03 PM

Title: Adjust image capture time
Post by: photoj on October 22, 2024, 03:08:03 PM
Hi

I have a series of images where the camera's time was off by 43 seconds. I need to adjust every image's time stamp by +43 seconds. I'm on a MAC. Can someone suggest a command to batch process a set of images in a folder, overwriting the originals?

Thanks in advance for any assistance!

Jim


Title: Re: Adjust image capture time
Post by: photoj on October 22, 2024, 03:12:08 PM
my best guess:

exiftool -shifttime '+::43'

I'm probably too new at this though!
Title: Re: Adjust image capture time
Post by: Phil Harvey on October 22, 2024, 03:28:03 PM
The actual command depends on what date/time tags you want to shift.  To shift everything (mostly), you would do this:

exiftool -time:all+=0:0:43 DIR

but that will reset the filesystem modification date/time to the current time.  If you want to shift this too, use this command instead:

exiftool -time:all+=0:0:43 -filemodifydate+=0:0:43 DIR

- Phil
Title: Re: Adjust image capture time
Post by: photoj on October 22, 2024, 04:56:22 PM
Hi Phil,

Thanks for your help. Really appreciate it.

Getting 'no file specified'. trying a few different endings to the directory path - -ext png, %f.png. I tried a path to a specific file, but got the error fg: no current job. See below:

bds@Blues-Mac-mini ~ % exiftool -time:all+=0:0:59/Volumes/Studio\ Sync/Sync/BDS\ Library/2024/20240-09/FBCS\ 2024/Exports/Edited\ Extracts/Time\ Test/ -ext png
No file specified

bds@Blues-Mac-mini ~ % exiftool -time:all+=0:0:59/Volumes/Studio\ Sync/Sync/BDS\ Library/2024/20240-09/FBCS\ 2024/Exports/Edited\ Extracts/Time\ Test/ '-ext png'
Invalid TAG name: "ext png"
No file specified
bds@Blues-Mac-mini ~ % exiftool -time:all+=0:0:59/Volumes/Studio\ Sync/Sync/BDS\ Library/2024/20240-09/FBCS\ 2024/Exports/Edited\ Extracts/Time\ Test/ %f.png
Error: File not found - %f.png
    0 image files updated
    1 files weren't updated due to errors

bds@Blues-Mac-mini ~ % exiftool -time:all+=0:0:59/Volumes/Studio\ Sync/Sync/BDS\ Library/2024/20240-09/FBCS\ 2024/Exports/Edited\ Extracts/Time\ Test/
No file specified

bds@Blues-Mac-mini ~ % % exiftool -time:all+=0:0:59/Volumes/Studio\ Sync/Sync/BDS\ Library/2024/20240-09/FBCS\ 2024/Exports/Edited\ Extracts/Time\ Test/DSC05458.png
fg: no current job
Title: Re: Adjust image capture time
Post by: photoj on October 22, 2024, 04:59:23 PM
I believe its one or both of these fields that I need to update:

Date/Time Original              : 2024:10:01 08:43:24
Create Date                     : 2024:10:01 08:43:24
Title: Re: Adjust image capture time
Post by: Phil Harvey on October 22, 2024, 08:59:29 PM
You need a space before "/Volumes"

- Phil