News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

The Exif logic

Started by alexpush, April 27, 2016, 02:19:01 PM

Previous topic - Next topic

alexpush

When I use this code:
exiftool "-IPTC:DateCreated +=00:48:0" ~/Desktop/TEMP3

The Date Created shifts by 48 hours

But when I change 48 to 47, like this
exiftool "-IPTC:DateCreated +=00:47:0" ~/Desktop/TEMP3
Nothing happens. This doesn't make any sense to me. I need to shift the Date Created by + 2 min and 27 sec. What would be the right code to use?

StarGeek

I'm not sure how you're getting that result in the first command.  IPTC:DateCreated is a date only tag.  It doesn't contain hours:minutes:seconds.    The IPTC group has IPTC:TimeCreated to hold that data.  There is no change when you try to shift DateCreated on the hour scale. 

In your second command, you're using a smart quote ("), not a double quote (").  Or, if you're on mac/linux, you can just use a single quote.

Do you mean to use CreateDate (EXIF:CreateDate and/or XMP:CreateDate) instead?  That tag does contain hours/minutes/seconds data.  For that tag, the command to add 2 minutes and 27 seconds would be:
exiftool -CreateDate+=0:2:47 ~/Desktop/TEMP3
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

alexpush

#2
Thanks for your help StarGeek. I tried using the code you gave, and also tried using this code: exiftool -AllDates+=0:2:47 ~/Desktop/TEMP3.
It does shift the time by 2 min and 47 seconds. But when I open the processed files in Adobe Bridge, the Date Created still shows with same (wrong) time as before. When I check in Finder, the date created is changed to today.

I was hoping that once the the correct time would show in Adobe Bridge, I would add photos from 2nd camera, sort them all by date created, and batch rename the files from 0001 to whatever. But Adobe Bridge still shows the old date of processed files. When I open these processed files in Preview, and click on Command I to get more info, both Exif and IPTC show the correct (new) time. I don't understand where Adobe Bridge gets the old one. I am testing with JPEGs, and already tried to Purge Cashe in Bridge.

Any suggestions?


StarGeek

I don't have access to Bridge, so I can't help to much with it.  Try re-importing the images if you can.  Otherwise, try out the command in FAQ 3.  You'll have to try and figure out what tag Bridge is reading.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

alexpush

I ran this command: exiftool -a -G1 -s c:\images\test.jpg
And I see that the following 3 tags are still showing the old time.

[XMP-photoshop] DateCreated                     : 2016:04:17 19:57:29.022
[IPTC]          TimeCreated                     : 19:57:29
[Composite]     DateTimeCreated                 : 2016:04:17 19:57:29

Is there a command that will change all 3 of these values at the same time?

StarGeek

You can ignore the composite tag.  Composite tags are derived from other tags in the file. 

To fix these tags, you can use
Exiftool -xmp:DateCreated+=0:2:47 -IPTC:TimeCreated+=0:2:47 ~/Desktop/TEMP3

* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

alexpush

The last code worked, but the cameras are still about 8 seconds apart.

I tried this code Exiftool -xmp:DateCreated+=0:0:7 -IPTC:TimeCreated+=0:0:7 ~/Desktop/TEMP3
It added the time, but Bridge didn't move the files in any way, even though I have it set to Sort by Date Created.

I then tried these 3 codes:

Exiftool -XMP-photoshop:DateCreated+=0:0:8 -IPTC:TimeCreated+=0:0:8 ~/Desktop/TEMP3
Exiftool -ExifIFD:DateTimeOriginal+=0:0:8 -ExifIFD:CreateDate+=0:0:8 ~/Desktop/TEMP3
Exiftool -XMP-xmp:CreateDate+=0:0:8 -XMP-xmp:MetadataDate+=0:0:8 -XMP-ModifyDate+=0:0:8 ~/Desktop/TEMP3

They each updated the files, but the files didn't change position in Bridge.
Please check the following code:


Pushkins-MacBook-Pro:~ DJP$ Exiftool -XMP-photoshop:DateCreated+=0:0:8 -IPTC:TimeCreated+=0:0:8 ~/Desktop/TEMP3
    1 directories scanned
1252 image files updated
Pushkins-MacBook-Pro:~ DJP$ Exiftool -ExifIFD:DateTimeOriginal+=0:0:8 -ExifIFD:CreateDate+=0:0:8 ~/Desktop/TEMP3
    1 directories scanned
1252 image files updated
Pushkins-MacBook-Pro:~ DJP$ Exiftool -XMP-xmp:CreateDate+=0:0:8 -XMP-xmp:MetadataDate+=0:0:8 -XMP-ModifyDate+=0:0:8 ~/Desktop/TEMP3
Warning: Tag 'XMP-ModifyDate' does not exist or has a bad language code
    1 directories scanned
1252 image files updated
Pushkins-MacBook-Pro:~ DJP$ Exiftool -xmp:DateCreated+=0:0:7 -IPTC:TimeCreated+=0:0:7 ~/Desktop/TEMP3
    1 directories scanned
1252 image files updated
Pushkins-MacBook-Pro:~ DJP$ exiftool -a -G1 -s ~/Desktop/TEMP3/993A8723.jpg
[ExifTool]      ExifToolVersion                 : 10.15
[System]        FileName                        : 993A8723.jpg
[System]        Directory                       : /Users/DJP/Desktop/TEMP3
[System]        FileSize                        : 2.4 MB
[System]        ResourceForkSize                : 98 kB
[System]        FileModifyDate                  : 2016:04:28 16:16:57-04:00
[System]        FileAccessDate                  : 2016:04:28 16:41:37-04:00
[System]        FileInodeChangeDate             : 2016:04:28 16:16:57-04:00
[System]        FilePermissions                 : rw-r--r--
[File]          FileType                        : JPEG
[File]          FileTypeExtension               : jpg
[File]          MIMEType                        : image/jpeg
[File]          ExifByteOrder                   : Little-endian (Intel, II)
[File]          CurrentIPTCDigest               : ac41598a53946089bd8f3424d00707b4
[File]          ImageWidth                      : 2640
[File]          ImageHeight                     : 3960
[File]          EncodingProcess                 : Baseline DCT, Huffman coding
[File]          BitsPerSample                   : 8
[File]          ColorComponents                 : 3
[File]          YCbCrSubSampling                : YCbCr4:4:4 (1 1)
[IFD0]          Make                            : Canon
[IFD0]          Model                           : Canon EOS 5D Mark III
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          XResolution                     : 240
[IFD0]          YResolution                     : 240
[IFD0]          ResolutionUnit                  : inches
[IFD0]          Software                        : Adobe Photoshop CS5 Macintosh
[IFD0]          ModifyDate                      : 2016:04:27 12:06:50
[ExifIFD]       ExposureTime                    : 1/250
[ExifIFD]       FNumber                         : 3.2
[ExifIFD]       ExposureProgram                 : Manual
[ExifIFD]       ISO                             : 250
[ExifIFD]       SensitivityType                 : Recommended Exposure Index
[ExifIFD]       RecommendedExposureIndex        : 250
[ExifIFD]       ExifVersion                     : 0230
[ExifIFD]       DateTimeOriginal                : 2016:04:17 16:30:37
[ExifIFD]       CreateDate                      : 2016:04:17 16:27:43
[ExifIFD]       ShutterSpeedValue               : 1/250
[ExifIFD]       ApertureValue                   : 3.2
[ExifIFD]       ExposureCompensation            : 0
[ExifIFD]       MaxApertureValue                : 2.8
[ExifIFD]       SubjectDistance                 : 7.06 m
[ExifIFD]       MeteringMode                    : Spot
[ExifIFD]       Flash                           : On, Fired
[ExifIFD]       FocalLength                     : 70.0 mm
[ExifIFD]       SubSecTimeOriginal              : 44
[ExifIFD]       SubSecTimeDigitized             : 44
[ExifIFD]       ColorSpace                      : Uncalibrated
[ExifIFD]       ExifImageWidth                  : 2640
[ExifIFD]       ExifImageHeight                 : 3960
[ExifIFD]       FocalPlaneXResolution           : 110
[ExifIFD]       FocalPlaneYResolution           : 110
[ExifIFD]       FocalPlaneResolutionUnit        : mm
[ExifIFD]       CustomRendered                  : Normal
[ExifIFD]       ExposureMode                    : Manual
[ExifIFD]       WhiteBalance                    : Auto
[ExifIFD]       SceneCaptureType                : Standard
[ExifIFD]       SerialNumber                    : 422023003333
[ExifIFD]       LensInfo                        : 70-200mm f/?
[ExifIFD]       LensModel                       : EF70-200mm f/2.8L IS II USM
[ExifIFD]       LensSerialNumber                : 0000c219b5
[IFD1]          Compression                     : JPEG (old-style)
[IFD1]          XResolution                     : 72
[IFD1]          YResolution                     : 72
[IFD1]          ResolutionUnit                  : inches
[IFD1]          ThumbnailOffset                 : 930
[IFD1]          ThumbnailLength                 : 6696
[XMP-x]         XMPToolkit                      : Adobe XMP Core 5.3-c007 1.136881, 2010/06/10-18:11:35
[XMP-aux]       ApproximateFocusDistance        : 7.06
[XMP-aux]       Firmware                        : 1.3.3
[XMP-aux]       FlashCompensation               : 0
[XMP-aux]       ImageNumber                     : 0
[XMP-aux]       Lens                            : EF70-200mm f/2.8L IS II USM
[XMP-aux]       LensID                          : 251
[XMP-aux]       LensInfo                        : 70-200mm f/?
[XMP-aux]       LensSerialNumber                : 0000c219b5
[XMP-aux]       SerialNumber                    : 422023003333
[XMP-dc]        Format                          : image/jpeg
[XMP-photoshop] DateCreated                     : 2016:04:17 16:30:17Z
[XMP-xmp]       CreateDate                      : 2016:04:17 16:27:43.44
[XMP-xmp]       CreatorTool                     : Adobe Photoshop CS5 Macintosh
[XMP-xmp]       Label                           : Second
[XMP-xmp]       MetadataDate                    : 2016:04:28 16:16:57-04:00
[XMP-xmp]       ModifyDate                      : 2016:04:27 12:06:50-04:00
[XMP-xmp]       Rating                          : 0
[XMP-xmpMM]     DocumentID                      : xmp.did:D068B78F0B206811822ADF8F65069269
[XMP-xmpMM]     InstanceID                      : xmp.iid:2ED273E0442068118C14F2D1E652040D
[XMP-xmpMM]     OriginalDocumentID              : EAEC8DAF776D592FD003319CB2EE54CD
[XMP-xmpMM]     DerivedFromDocumentID           : xmp.did:D068B78F0B206811822ADF8F65069269
[XMP-xmpMM]     DerivedFromInstanceID           : xmp.iid:2D08C9740B2068119B47B69F14361C60
[XMP-xmpMM]     DerivedFromOriginalDocumentID   : EAEC8DAF776D592FD003319CB2EE54CD
[XMP-xmpMM]     HistoryAction                   : saved, saved, derived, saved, saved, converted, derived, saved, saved, saved
[XMP-xmpMM]     HistoryChanged                  : /metadata, /metadata, /, /, /, /metadata, /metadata
[XMP-xmpMM]     HistoryInstanceID               : xmp.iid:F979D7F28C206811822A937564979CC6, xmp.iid:3D95BCD5862168118C148604C1B4BD86, xmp.iid:D068B78F0B206811822ADF8F65069269, xmp.iid:2D08C9740B2068119B47B69F14361C60, xmp.iid:2E08C9740B2068119B47B69F14361C60, xmp.iid:B9C2F87D072068118C149A3A4F79D467, xmp.iid:2ED273E0442068118C14F2D1E652040D
[XMP-xmpMM]     HistorySoftwareAgent            : Adobe Photoshop Camera Raw 6.7.1 (Macintosh), Adobe Photoshop Camera Raw 6.7.1 (Macintosh), Adobe Photoshop Camera Raw 6.7.1 (Macintosh), Adobe Photoshop CS5 Macintosh, Adobe Photoshop CS5 Macintosh, Adobe Photoshop Camera Raw 6.7.1 (Macintosh), Adobe Photoshop Camera Raw 6.7.1 (Macintosh)
[XMP-xmpMM]     HistoryWhen                     : 2016:04:25 08:26:21-04:00, 2016:04:26 23:35:39-04:00, 2016:04:27 12:06:49-04:00, 2016:04:27 12:06:50-04:00, 2016:04:27 12:06:50-04:00, 2016:04:28 08:00:22-04:00, 2016:04:28 16:16:57-04:00
[XMP-xmpMM]     HistoryParameters               : converted from image/x-canon-cr2 to image/tiff, from image/tiff to image/jpeg, converted from image/tiff to image/jpeg
[XMP-crs]       AlreadyApplied                  : True
[XMP-crs]       AutoLateralCA                   : 0
[XMP-crs]       Blacks2012                      : 0
[XMP-crs]       BlueHue                         : 0
[XMP-crs]       BlueSaturation                  : 0
[XMP-crs]       Brightness                      : +50
[XMP-crs]       CameraProfile                   : Adobe Standard
[XMP-crs]       CameraProfileDigest             : 87FB0EDC503E332309FB5DE5C5C65125
[XMP-crs]       Clarity                         : 0
[XMP-crs]       Clarity2012                     : 0
[XMP-crs]       ColorNoiseReduction             : 25
[XMP-crs]       ColorNoiseReductionDetail       : 50
[XMP-crs]       Contrast                        : +44
[XMP-crs]       Contrast2012                    : +25
[XMP-crs]       ConvertToGrayscale              : False
[XMP-crs]       Defringe                        : 0
[XMP-crs]       Exposure                        : +0.25
[XMP-crs]       Exposure2012                    : +0.25
[XMP-crs]       FillLight                       : 0
[XMP-crs]       GrainAmount                     : 0
[XMP-crs]       GreenHue                        : 0
[XMP-crs]       GreenSaturation                 : 0
[XMP-crs]       HasCrop                         : False
[XMP-crs]       HasSettings                     : True
[XMP-crs]       HighlightRecovery               : 0
[XMP-crs]       Highlights2012                  : 0
[XMP-crs]       HueAdjustmentAqua               : 0
[XMP-crs]       HueAdjustmentBlue               : 0
[XMP-crs]       HueAdjustmentGreen              : 0
[XMP-crs]       HueAdjustmentMagenta            : 0
[XMP-crs]       HueAdjustmentOrange             : 0
[XMP-crs]       HueAdjustmentPurple             : 0
[XMP-crs]       HueAdjustmentRed                : 0
[XMP-crs]       HueAdjustmentYellow             : 0
[XMP-crs]       LensManualDistortionAmount      : 0
[XMP-crs]       LensProfileEnable               : 0
[XMP-crs]       LensProfileSetup                : LensDefaults
[XMP-crs]       LuminanceAdjustmentAqua         : 0
[XMP-crs]       LuminanceAdjustmentBlue         : 0
[XMP-crs]       LuminanceAdjustmentGreen        : 0
[XMP-crs]       LuminanceAdjustmentMagenta      : 0
[XMP-crs]       LuminanceAdjustmentOrange       : 0
[XMP-crs]       LuminanceAdjustmentPurple       : 0
[XMP-crs]       LuminanceAdjustmentRed          : 0
[XMP-crs]       LuminanceAdjustmentYellow       : 0
[XMP-crs]       LuminanceSmoothing              : 0
[XMP-crs]       ParametricDarks                 : 0
[XMP-crs]       ParametricHighlightSplit        : 75
[XMP-crs]       ParametricHighlights            : 0
[XMP-crs]       ParametricLights                : 0
[XMP-crs]       ParametricMidtoneSplit          : 50
[XMP-crs]       ParametricShadowSplit           : 25
[XMP-crs]       ParametricShadows               : 0
[XMP-crs]       PerspectiveHorizontal           : 0
[XMP-crs]       PerspectiveRotate               : 0.0
[XMP-crs]       PerspectiveScale                : 100
[XMP-crs]       PerspectiveVertical             : 0
[XMP-crs]       PostCropVignetteAmount          : 0
[XMP-crs]       ProcessVersion                  : 5.7
[XMP-crs]       RawFileName                     : 993A8723.CR2
[XMP-crs]       RedHue                          : 0
[XMP-crs]       RedSaturation                   : 0
[XMP-crs]       Saturation                      : 0
[XMP-crs]       SaturationAdjustmentAqua        : 0
[XMP-crs]       SaturationAdjustmentBlue        : 0
[XMP-crs]       SaturationAdjustmentGreen       : 0
[XMP-crs]       SaturationAdjustmentMagenta     : 0
[XMP-crs]       SaturationAdjustmentOrange      : 0
[XMP-crs]       SaturationAdjustmentPurple      : 0
[XMP-crs]       SaturationAdjustmentRed         : 0
[XMP-crs]       SaturationAdjustmentYellow      : 0
[XMP-crs]       ShadowTint                      : 0
[XMP-crs]       Shadows                         : 5
[XMP-crs]       Shadows2012                     : 0
[XMP-crs]       SharpenDetail                   : 25
[XMP-crs]       SharpenEdgeMasking              : 0
[XMP-crs]       SharpenRadius                   : +1.0
[XMP-crs]       Sharpness                       : 25
[XMP-crs]       SplitToningBalance              : 0
[XMP-crs]       SplitToningHighlightHue         : 0
[XMP-crs]       SplitToningHighlightSaturation  : 0
[XMP-crs]       SplitToningShadowHue            : 0
[XMP-crs]       SplitToningShadowSaturation     : 0
[XMP-crs]       ColorTemperature                : 4500
[XMP-crs]       Tint                            : +22
[XMP-crs]       ToneCurveName                   : Medium Contrast
[XMP-crs]       ToneCurveName2012               : Linear
[XMP-crs]       Version                         : 6.7.1
[XMP-crs]       Vibrance                        : 0
[XMP-crs]       VignetteAmount                  : 0
[XMP-crs]       WhiteBalance                    : Custom
[XMP-crs]       Whites2012                      : 0
[XMP-crs]       ToneCurve                       : 0, 0, 32, 22, 64, 56, 128, 128, 192, 196, 255, 255
[XMP-crs]       ToneCurveBlue                   : 0, 0, 255, 255
[XMP-crs]       ToneCurveGreen                  : 0, 0, 255, 255
[XMP-crs]       ToneCurvePV2012                 : 0, 0, 255, 255
[XMP-crs]       ToneCurvePV2012Blue             : 0, 0, 255, 255
[XMP-crs]       ToneCurvePV2012Green            : 0, 0, 255, 255
[XMP-crs]       ToneCurvePV2012Red              : 0, 0, 255, 255
[XMP-crs]       ToneCurveRed                    : 0, 0, 255, 255
[Photoshop]     XResolution                     : 240
[Photoshop]     DisplayedUnitsX                 : inches
[Photoshop]     YResolution                     : 240
[Photoshop]     DisplayedUnitsY                 : inches
[Photoshop]     PhotoshopQuality                : 11
[Photoshop]     PhotoshopFormat                 : Standard
[Photoshop]     ProgressiveScans                : 3 Scans
[Photoshop]     PhotoshopThumbnail              : (Binary data 6696 bytes, use -b option to extract)
[Photoshop]     GlobalAngle                     : 30
[Photoshop]     GlobalAltitude                  : 30
[Photoshop]     SlicesGroupName                 : 993A8723
[Photoshop]     NumSlices                       : 1
[Photoshop]     URL_List                        :
[Photoshop]     HasRealMergedData               : Yes
[Photoshop]     WriterName                      : Adobe Photoshop
[Photoshop]     ReaderName                      : Adobe Photoshop CS5
[Photoshop]     IPTCDigest                      : ac41598a53946089bd8f3424d00707b4
[Photoshop]     PrintStyle                      : Centered
[Photoshop]     PrintPosition                   : 0 0
[Photoshop]     PrintScale                      : 1
[Photoshop]     PixelAspectRatio                : 1
[IPTC]          CodedCharacterSet               : UTF8
[IPTC]          EnvelopeRecordVersion           : 4
[IPTC]          ApplicationRecordVersion        : 4
[IPTC]          DateCreated                     : 2016:04:17
[IPTC]          TimeCreated                     : 16:30:17+00:00
[Adobe]         DCTEncodeVersion                : 100
[Adobe]         APP14Flags0                     : [14]
[Adobe]         APP14Flags1                     : (none)
[Adobe]         ColorTransform                  : YCbCr
[Composite]     Aperture                        : 3.2
[Composite]     DateTimeCreated                 : 2016:04:17 16:30:17+00:00
[Composite]     ImageSize                       : 2640x3960
[Composite]     Megapixels                      : 10.5
[Composite]     ScaleFactor35efl                : 1.0
[Composite]     ShutterSpeed                    : 1/250
[Composite]     SubSecCreateDate                : 2016:04:17 16:27:43.44
[Composite]     SubSecDateTimeOriginal          : 2016:04:17 16:30:37.44
[Composite]     ThumbnailImage                  : (Binary data 6696 bytes, use -b option to extract)
[Composite]     CircleOfConfusion               : 0.030 mm
[Composite]     DOF                             : 1.97 m (6.21 - 8.18 m)
[Composite]     FOV                             : 28.8 deg
[Composite]     FocalLength35efl                : 70.0 mm (35 mm equivalent: 70.0 mm)
[Composite]     HyperfocalDistance              : 50.96 m
[Composite]     LensID                          : Canon EF 70-200mm f/2.8L IS II USM
[Composite]     LightValue                      : 10.0
Pushkins-MacBook-Pro:~ DJP$



Any suggestions?
How can I find out which tag Adobe Bridge uses to sort photos?
I tried googling it, but can't find the answer. Maybe I'm not using the right search terms. Please help.



StarGeek

As I said, I don't have Bridge so I can't help to much there.  See if there's some way your can reload the files, as it may be possible that Bridge doesn't recognize that the file has changed and therefore still has old data associated with the file.

Also, since you're just dealing with time values in this case, try using this command to just look at the time related tags so you don't have to deal with all the other tags.
exiftool exiftool -time:all -a -G1 -s

The only actual problem I see with your output is in the case of XMP-ModifyDate.  In this case you can simply use -XMP:ModifyDate.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

alexpush

I decided to start from scratch, and this time it worked!

I used this command.
exiftool -DateTimeOriginal+=0:2:27 ~/Desktop/TEMP3/


Thanks StarGeek