February 19, 2023, 6:58pm
I am trying to read the creation date (when it was shot) of a jpg image with
imagemagick identify -verbose.
I have an example here which was shot on 2021-06-10. But I am getting the date when it was copied to my computer (imported with Shotwell from an iPhone [iOS 12.5.7])
$ identify -verbose IMG_0705.JPG | grep date
is this the wrong tool? If so, what else can I use to achieve that?
You probably want to read the EXIF data if the image has them.
There are tools for that - usually even the file manager can read those - with the right tools installed.
You’d have to search because that is about the extent of my knowledge.
Install perl-image-exiftool from the official repositories & then run the command:
exiftool IMG_0705.JPG | grep Date
I just ran the command on an old photo from my phone that I transferred to my PC a couple of years ago & got the following info:
File Modification Date/Time : 2018:04:07 17:30:33+10:00
File Access Date/Time : 2020:05:16 06:18:53+10:00
File Inode Change Date/Time : 2020:05:15 20:32:43+10:00
Modify Date : 2018:04:07 17:22:42
Date/Time Original : 2018:04:07 17:22:42
Create Date : 2018:04:07 17:22:42
Create Date : 2018:04:07 17:22:42.46
Date/Time Original : 2018:04:07 17:22:42.46
Modify Date : 2018:04:07 17:22:42.46