Please help I am so new at this all I want to do is shift photos by 24 minutes because after a huge trip I realized my camera was set at the wrong time. I use a mac and am so bad at programming and computer stuff and I've been trying to do this all week will no luck at all. I have all my files in a folder on my desktop called FIX and I just need to shift every photo 24 minutes back any help is appreaciated
To subtract 24 minutes, your command would be:
exiftool -AllDates-=0:24 /path/to/directory
You would replace /path/to/directory with the correct path to the directory that holds the pictures. On the Mac, I believe you can drag and drop the directory onto the terminal window.
This is what comes back and it doesn't seem like anything is happening. When I do one image at a time it comes up as
Warning: [minor] Suspicious MakerNotes offset for ExposureBracketValue - /Users/annievail9/Desktop/DIR/DSC_0347.JPG
Try adding the -v3 option to see exactly what is happening. If you post the output here we should be able to figure this out.
- Phil
So when the input is exiftool -AllDates-=0:24 -v3 /Users/annievail9/Desktop/DIR/DSC_0349.JPG
The output is
Shifting MIE-Doc:DateTimeOriginal if tag exists
Shifting CanonRaw:DateTimeOriginal if tag exists
Shifting Reconyx:DateTimeOriginal if tag exists
Shifting Kodak:DateTimeOriginal if tag exists
Shifting XMP-exif:DateTimeOriginal if tag exists
Shifting ExifIFD:DateTimeOriginal if tag exists
Shifting PNG:CreateDate if tag exists
Invalid date/time (use YYYY:mm:dd HH:MM:SS[.ss][+/-HH:MM|Z]) in PostScript:CreateDate (PrintConvInv)
Deleting PostScript:CreateDate if value is 'xxx never delete xxx'
Shifting QuickTime:CreateDate if tag exists
Shifting MIE-Doc:CreateDate if tag exists
Shifting PDF:CreateDate if tag exists
Shifting XMP-xmp:CreateDate if tag exists
Shifting ExifIFD:CreateDate if tag exists
Invalid date/time (use YYYY:mm:dd HH:MM:SS[.ss][+/-HH:MM|Z]) in PostScript:ModifyDate (PrintConvInv)
Deleting PostScript:ModifyDate if value is 'xxx never delete xxx'
Shifting QuickTime:ModifyDate if tag exists
Shifting PNG:ModifyDate if tag exists
Shifting PDF:ModifyDate if tag exists
Shifting MIE-Doc:ModifyDate if tag exists
Shifting XMP-xmp:ModifyDate if tag exists
Shifting IFD0:ModifyDate if tag exists
======== /Users/annievail9/Desktop/DIR/DSC_0349.JPG
Rewriting /Users/annievail9/Desktop/DIR/DSC_0349.JPG...
Editing tags in: APP0 APP1 CIFF ExifIFD IFD0 JFIF MIE-Doc MakerNotes PDF PNG PostScript QuickTime XMP
Creating tags in:
JPEG APP1 (65532 bytes):
0000: 45 78 69 66 00 00 4d 4d 00 2a 00 00 00 08 00 0b [Exif..MM.*......]
0010: 01 0f 00 02 00 00 00 12 00 00 00 94 01 10 00 02 [................]
0020: 00 00 00 0c 00 00 00 a8 01 12 00 03 00 00 00 01 [................]
0030: 00 01 00 00 01 1a 00 05 00 00 00 01 00 00 00 b4 [................]
0040: 01 1b 00 05 00 00 00 01 00 00 00 bc 01 28 00 03 [.............(..]
0050: 00 00 00 01 00 02 00 00 01 31 00 02 00 00 00 0a [.........1......]
0060: 00 00 00 c4 01 32 00 02 00 00 00 14 00 00 00 d0 [.....2..........]
[snip 65420 bytes]
Rewriting IFD0
ExifByteOrder = MM
- IFD0:ModifyDate = '2016:06:30 22:07:50'
+ IFD0:ModifyDate = '2016:06:30 21:43:50'
Rewriting ExifIFD
- ExifIFD:DateTimeOriginal = '2016:06:30 22:07:50'
+ ExifIFD:DateTimeOriginal = '2016:06:30 21:43:50'
- ExifIFD:CreateDate = '2016:06:30 22:07:50'
+ ExifIFD:CreateDate = '2016:06:30 21:43:50'
Rewriting MakerNoteNikon
Rewriting PreviewIFD
Warning = [minor] Suspicious MakerNotes offset for ExposureBracketValue
Rewriting VRInfo
Rewriting PictureControlData
Rewriting WorldTime
Rewriting ISOInfo
Rewriting DistortInfo
Rewriting UnknownInfo
Rewriting ShotInfo02xx
Rewriting ColorBalance0215
Rewriting LensData0204
Rewriting FlashInfo0103
Rewriting MultiExposure
Rewriting AFInfo2
Rewriting FileInfo
Rewriting RetouchInfo
Rewriting InteropIFD
Rewriting GPS
Rewriting IFD1
JPEG DQT (130 bytes):
JPEG SOF0:
JPEG DHT (416 bytes):
JPEG SOS
Warning: [minor] Suspicious MakerNotes offset for ExposureBracketValue - /Users/annievail9/Desktop/DIR/DSC_0349.JPG
1 image files updated
And in finder the time on the file is the same
Right. "AllDates" is a shortcut (https://exiftool.org/TagNames/Shortcuts.html) representing the common EXIF date/time tags, which are all being shifted properly.
The Finder time is likely the filesystem modification date/time (FileModifyDate). You must shift this separately if desired:
exiftool -AllDates-=0:24 -filemodifydate-=0:24 /Users/annievail9/Desktop/DIR/DSC_0349.JPG
- Phil
When I did that and inputted
annievail9$ exiftool -AllDates-=0:24 -filemodifydate-=0:24 /Users/annievail9/Desktop/DIR/DSC_0355.JPG
The output was
Warning: [minor] Suspicious MakerNotes offset for ExposureBracketValue - /Users/annievail9/Desktop/DIR/DSC_0355.JPG
1 image files updated
And all that happened was the file was changed to a document called "DSC_0355.JPG_original"
Quote from: annievail9 on August 30, 2016, 01:32:21 PM
The output was
Warning: [minor] Suspicious MakerNotes offset for ExposureBracketValue - /Users/annievail9/Desktop/DIR/DSC_0355.JPG
1 image files updated
That's a minor warning and is unlikely to affect the processing. As it says below that, the image was updated. This warning can be suppressed by adding
-m to the command.
QuoteAnd all that happened was the file was changed to a document called "DSC_0355.JPG_original"
This is a backup file that's automatically created. The original file should still be there. This file will allow you to revert the file using the command
exiftool -restore_original FileOrDir.
Okay it looks like the time is finally changed. I made a folder with only one picture and ran the
annievail9$ exiftool -AllDates-=0:24 -filemodifydate-=0:24 /Users/annievail9/Desktop/TEST/DSC_0350.JPG -m and then there was still only one item in the folder now with the correct time (It used to be 10:07 pm) but it was in a document format and now it is unable to be read by iphoto. please help.
And when I ran
exiftool -restore_original /Users/annievail9/Desktop/TEST/DSC_0350.JPG_original Nothing happened and the output was
1 image files found
0 original files found
Quote from: annievail9 on August 30, 2016, 07:57:58 PM
but it was in a document format and now it is unable to be read by iphoto
I don't understand. What file? The .JPG file is still a JPG, and iPhoto will be able to read it.
QuoteAnd when I ran
exiftool -restore_original /Users/annievail9/Desktop/TEST/DSC_0350.JPG_original
Nothing happened
The command should have been:
exiftool -restore_original /Users/annievail9/Desktop/TEST/DSC_0350.JPG- Phil
When I import the photo into iPhoto it still is showing up as the original time. I've tried deleting and readding it, even restarting my computer. It always comes up as the original time not the -24 minutes time
I think that reading FAQ 24 (https://exiftool.org/faq.html#Q24) may help here. It sounds like iPhoto is using some other date/time information.
Try this command to see what is available:
exiftool -time:all -a -G1 FILE
- Phil