How to change "exif:DateTimeDigitized" of jpg photo?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
56481268@qq.com
Posts: 2
Joined: 2016-04-25T07:17:01-07:00
Authentication code: 1151

How to change "exif:DateTimeDigitized" of jpg photo?

Post by 56481268@qq.com »

I tried this command:

Code: Select all

Convert -set %[exif:DateTimeDigitized] "2016-04-21 17:34" my.jpg
, but it did'nt change the DateTimeDigitized of my.jpg.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to change "exif:DateTimeDigitized" of jpg photo?

Post by snibgo »

I would use exiftool for that job.
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to change "exif:DateTimeDigitized" of jpg photo?

Post by Bonzo »

Also from what I understand Imagemagick will open the jpg make the change and save it which means more jpg compression.

I would also guess your code needs to be:

Code: Select all

Convert my.jpg -set %[exif:DateTimeDigitized] "2016-04-21 17:34" my.jpg
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to change "exif:DateTimeDigitized" of jpg photo?

Post by fmw42 »

Imagemagick reads EXIF data, but does not write to it. As snibgo said above, use Exiftool.
56481268@qq.com
Posts: 2
Joined: 2016-04-25T07:17:01-07:00
Authentication code: 1151

Re: How to change "exif:DateTimeDigitized" of jpg photo?

Post by 56481268@qq.com »

Exiftool works. Tks everyone.
Post Reply