iPhone metadata and [Photoshop] IPTC Digest

Started by chipsdinosaur, April 11, 2024, 05:11:21 AM

Previous topic - Next topic

chipsdinosaur

Hi, I have a case where I have two images - one from late 2017 and one from 2018. The 2017 image does not have these tags:


[XMP-x]         XMP Toolkit                    : XMP Core 5.4.0
[XMP-xmp]       Creator Tool                   : 11.1.2
[XMP-xmp]       Modify Date                    : 2018:02:01 19:59:33
[XMP-xmp]       Create Date                    : 2018:02:01 19:59:33
[XMP-photoshop] Date Created                   : 2018:02:01 19:59:33
[XMP-mwg-rs]    Region Type                    : Face
[XMP-mwg-rs]    Region Area Y                  : 0.31499999999999995
[XMP-mwg-rs]    Region Area W                  : 0.41899999999999998
[XMP-mwg-rs]    Region Area X                  : 0.28849999999999998
[XMP-mwg-rs]    Region Area H                  : 0.56399999999999995
[XMP-mwg-rs]    Region Area Unit               : normalized
[XMP-mwg-rs]    Region Extensions Angle Info Yaw: 315
[XMP-mwg-rs]    Region Extensions Angle Info Roll: 270
[XMP-mwg-rs]    Region Extensions Confidence Level: 494
[XMP-mwg-rs]    Region Extensions Time Stamp   : 2147483647
[XMP-mwg-rs]    Region Extensions Face ID      : 2
[XMP-mwg-rs]    Region Applied To Dimensions H : 2320
[XMP-mwg-rs]    Region Applied To Dimensions W : 3088
[XMP-mwg-rs]    Region Applied To Dimensions Unit: pixel
[IPTC]          Coded Character Set            : UTF8
[IPTC]          Application Record Version     : 2
[IPTC]          Digital Creation Time          : 13:52:33
[IPTC]          Digital Creation Date          : 2018:02:01
[IPTC]          Date Created                   : 2018:02:01
[IPTC]          Time Created                   : 19:59:33
[Photoshop]     IPTC Digest                    : df9b584df80d8ae018a7b338dbcbc5b1


But the 2018 images does. In the 2018 image the IPTC digest hash matches the Current IPTC Digest hash - does this mean the image has not been modified?

Are these XMP and IPTC tags normal for iPhone images?

Phil Harvey

Quote from: veattt on April 11, 2024, 05:11:21 AMBut the 2018 images does. In the 2018 image the IPTC digest hash matches the Current IPTC Digest hash - does this mean the image has not been modified?

No.  It means that the IPTC is synchronized with the XMP.

QuoteAre these XMP and IPTC tags normal for iPhone images?

No.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

I believe that some newer cameras/phones (not sure which ones) are saving the XMP region data in the file, but the rest of the tags are as Phil says.  Especially IPTCDigest.  That has to be created by an image that has had the metadata edited in some way.
* 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).

chipsdinosaur

#3
Looking at https://exiftool.org/sample_images.html and iPhone7plus I see this:

G:\FTP\Apple>"exiftool(-k).exe" -a -G1 Apple_iPhone7Plus.jpg
[ExifTool]      ExifTool Version Number         : 12.82
[System]        File Name                       : Apple_iPhone7Plus.jpg
[System]        Directory                       : .
[System]        File Size                       : 4.5 kB
[System]        File Modification Date/Time     : 2016:09:30 18:29:02+02:00
[System]        File Access Date/Time           : 2024:04:12 00:02:28+02:00
[System]        File Creation Date/Time         : 2024:04:12 00:01:44+02:00
[System]        File Permissions                : -rw-rw-rw-
[File]          File Type                       : JPEG
[File]          File Type Extension             : jpg
[File]          MIME Type                       : image/jpeg
[File]          Exif Byte Order                 : Big-endian (Motorola, MM)
[File]          Current IPTC Digest             : 0e24055b187dc93d328af4699649bd32
[File]          Image Width                     : 8
[File]          Image Height                    : 8
[File]          Encoding Process                : Baseline DCT, Huffman coding
[File]          Bits Per Sample                 : 8
[File]          Color Components                : 3
[File]          Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
[JFIF]          JFIF Version                    : 1.01
[JFIF]          Resolution Unit                 : None
[JFIF]          X Resolution                    : 72
[JFIF]          Y Resolution                    : 72
[IFD0]          Make                            : Apple
[IFD0]          Camera Model Name               : iPhone 7 Plus
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          X Resolution                    : 72
[IFD0]          Y Resolution                    : 72
[IFD0]          Resolution Unit                 : inches
[IFD0]          Software                        : Photos 2.0
[IFD0]          Modify Date                     : 2016:08:12 13:28:50
[ExifIFD]       Exposure Time                   : 1/3546
[ExifIFD]       F Number                        : 1.8
[ExifIFD]       Exposure Program                : Program AE
[ExifIFD]       ISO                             : 20
[ExifIFD]       Exif Version                    : 0221
[ExifIFD]       Date/Time Original              : 2016:08:12 13:28:50
[ExifIFD]       Create Date                     : 2016:08:12 13:28:50
[ExifIFD]       Components Configuration        : Y, Cb, Cr, -
[ExifIFD]       Shutter Speed Value             : 1/3546
[ExifIFD]       Aperture Value                  : 1.8
[ExifIFD]       Brightness Value                : 11.37297921
[ExifIFD]       Exposure Compensation           : 0
[ExifIFD]       Metering Mode                   : Multi-segment
[ExifIFD]       Flash                           : Off, Did not fire
[ExifIFD]       Focal Length                    : 4.0 mm
[ExifIFD]       Subject Area                    : 2015 1511 2217 1330
[ExifIFD]       Sub Sec Time Original           : 728
[ExifIFD]       Sub Sec Time Digitized          : 728
[ExifIFD]       Flashpix Version                : 0100
[ExifIFD]       Color Space                     : sRGB
[ExifIFD]       Exif Image Width                : 3024
[ExifIFD]       Exif Image Height               : 4032
[ExifIFD]       Sensing Method                  : One-chip color area
[ExifIFD]       Scene Type                      : Directly photographed
[ExifIFD]       Exposure Mode                   : Auto
[ExifIFD]       White Balance                   : Auto
[ExifIFD]       Focal Length In 35mm Format     : 28 mm
[ExifIFD]       Scene Capture Type              : Standard
[ExifIFD]       Lens Info                       : 3.99-6.6mm f/1.8-2.8
[ExifIFD]       Lens Make                       : Apple
[ExifIFD]       Lens Model                      : iPhone 7 Plus back iSight Duo camera 3.99mm f/1.8
[Apple]         Maker Note Version              : 4
[Apple]         Run Time Flags                  : Valid
[Apple]         Run Time Value                  : 17831474174583
[Apple]         Run Time Epoch                  : 0
[Apple]         Run Time Scale                  : 1000000000
[Apple]         AE Stable                       : Yes
[Apple]         AE Target                       : 217
[Apple]         AE Average                      : 216
[Apple]         AF Stable                       : Yes
[Apple]         Acceleration Vector             : 0.01393418859 -1.008346906 -0.001566628917
[Apple]         Focus Distance Range            : 0.24 - 0.66 m
[Apple]         Image Capture Type              : ProRAW
[GPS]           GPS Latitude Ref                : North
[GPS]           GPS Latitude                    : 22 deg 20' 7.58"
[GPS]           GPS Longitude Ref               : East
[GPS]           GPS Longitude                   : 114 deg 9' 50.46"
[GPS]           GPS Altitude Ref                : Above Sea Level
[GPS]           GPS Altitude                    : 73 m
[GPS]           GPS Time Stamp                  : 05:28:49
[GPS]           GPS Speed Ref                   : km/h
[GPS]           GPS Speed                       : 0.487198608
[GPS]           GPS Img Direction Ref           : True North
[GPS]           GPS Img Direction               : 86.18004866
[GPS]           GPS Dest Bearing Ref            : True North
[GPS]           GPS Dest Bearing                : 86.18004866
[GPS]           GPS Date Stamp                  : 2016:08:12
[GPS]           GPS Horizontal Positioning Error: 16 m
[XMP-x]         XMP Toolkit                     : XMP Core 5.4.0
[XMP-xmp]       Creator Tool                    : Photos 2.0
[XMP-xmp]       Modify Date                     : 2016:08:12 13:28:50
[XMP-xmp]       Create Date                     : 2016:08:12 13:28:50
[XMP-aux]       Image Number                    : 1425
[XMP-photoshop] Date Created                    : 2016:08:12 13:28:50
[IPTC]          Coded Character Set             : UTF8
[IPTC]          Application Record Version      : 2
[IPTC]          Digital Creation Time           : 13:28:50
[IPTC]          Digital Creation Date           : 2016:08:12
[IPTC]          Date Created                    : 2016:08:12
[IPTC]          Time Created                    : 13:28:50
[b][Photoshop]     IPTC Digest                     : 0e24055b187dc93d328af4699649bd32[/b]
[Composite]     Run Time Since Power Up         : 4:57:11
[Composite]     Aperture                        : 1.8
[Composite]     Image Size                      : 8x8
[Composite]     Megapixels                      : 0.000064
[Composite]     Scale Factor To 35 mm Equivalent: 7.0
[Composite]     Shutter Speed                   : 1/3546
[Composite]     Create Date                     : 2016:08:12 13:28:50.728
[Composite]     Date/Time Original              : 2016:08:12 13:28:50.728
[Composite]     GPS Altitude                    : 73 m Above Sea Level
[Composite]     GPS Date/Time                   : 2016:08:12 05:28:49Z
[Composite]     GPS Latitude                    : 22 deg 20' 7.58" N
[Composite]     GPS Longitude                   : 114 deg 9' 50.46" E
[Composite]     Date/Time Created               : 2016:08:12 13:28:50
[Composite]     Digital Creation Date/Time      : 2016:08:12 13:28:50
[Composite]     Circle Of Confusion             : 0.004 mm
[Composite]     Field Of View                   : 65.5 deg
[Composite]     Focal Length                    : 4.0 mm (35 mm equivalent: 28.0 mm)
[Composite]     GPS Position                    : 22 deg 20' 7.58" N, 114 deg 9' 50.46" E
[Composite]     Hyperfocal Distance             : 2.07 m
[Composite]     Light Value                     : 15.8
[Composite]     Lens ID                         : iPhone 7 Plus back iSight Duo camera 3.99mm f/1.8

It seems like this model of iPhone might be an exception?

EDIT: just checked iPhone6plus, iPhone11Pro, iPhone12Pro, iPhone12ProMax, iPhone13Pro and iPhonex in https://exiftool.org/sample_images.html. These all have [Photoshop]     IPTC Digest.

Does this mean this tag is for some reason recorded in some phone models, or has this been added by mistake when creating sample images?

PH Edit: Put output in code block.

StarGeek

Quote from: veattt on April 11, 2024, 06:06:20 PM[IFD0]          Software                        : Photos 2.0
...
[XMP-xmp]       Creator Tool                    : Photos 2.0

That file has been edited, which probably is where the IPTCDigest was added. I don't believe that all of Phil's samples are directly from the camera

Check the iPhone 7 plus samples on DPReview.  Those don't have the IPTCDigest.  Additionally, they do have an ICC Profiles, which aren't shown in the above output.

I absolutely could be wrong.  There could be a camera out there adding IPTCDigest upon creation. But I don't see why they would.  It would be extra work for the camera to add data that isn't part of any spec and deals ensuring the outdated spec (IPTC IIM) is in sync with the modern spec (IPTC Core/Ext/more)
* 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).

Phil Harvey

It could be that some iPhones write IPTCDigest, but definitely most don't, certainly not the older ones.  StarGeek is correct, some of those samples were obviously modified by other software.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

chipsdinosaur

Thank you both for your answers. I am still looking into this, trying to better understand IPTC Digest. I have 5 images (collected from iCloud) that I have taken myself and that I know is edited - most likely using an editing app on iOS.

What I don't understand is, how do these have identical values for IPTC Digest? They are definitely not the same image, nor edited versions of the same image.

[Photoshop]     IPTC Digest                     : d41d8cd98f00b204e9800998ecf8427e
======== ./IMG_0146.jpeg
[Photoshop]     IPTC Digest                     : d41d8cd98f00b204e9800998ecf8427e
======== ./IMG_1033.JPG
[Photoshop]     IPTC Digest                     : d41d8cd98f00b204e9800998ecf8427e
======== ./IMG_3324.jpeg
[Photoshop]     IPTC Digest                     : d41d8cd98f00b204e9800998ecf8427e
======== ./IMG_3609.JPG
[Photoshop]     IPTC Digest                     : d41d8cd98f00b204e9800998ecf8427e


EDIT: I see that this is The md5sum of "nothing". I just don't understand why they are in these images, but this might be related to the app used I guess?
If anyone can explain how this is normally calculated, and how you would use IPTC Digest and Current IPTC Digest to verify the originality of an image - I would much appreciate it.

Phil Harvey

Did you look at the IPTC?  It must be the same to have the same digest (provided the digest is up-to-date).

Likely the digest value for default IPTC written by some app or the phone, or when uploaded to iCloud.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

stoffball

Quote from: veattt on April 17, 2024, 03:28:23 PM[Photoshop]     IPTC Digest                     : d41d8cd98f00b204e9800998ecf8427e

This IPTC Digest is the hash of an empty IPTC value. (https://exiftool.org/forum/index.php?topic=11868.0)
So this indicates that these images contains no IPTC data and only the IPTC digest was added for the empty IPTC tags.