Page 1 of 1

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

Posted: 2016-04-25T07:24:15-07:00
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.

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

Posted: 2016-04-25T07:41:13-07:00
by snibgo
I would use exiftool for that job.

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

Posted: 2016-04-25T09:50:16-07:00
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

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

Posted: 2016-04-25T10:11:33-07:00
by fmw42
Imagemagick reads EXIF data, but does not write to it. As snibgo said above, use Exiftool.

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

Posted: 2016-05-09T07:15:13-07:00
by 56481268@qq.com
Exiftool works. Tks everyone.