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?".
56481268@qq.com
Posts: 2 Joined: 2016-04-25T07:17:01-07:00
Authentication code: 1151
Post
by 56481268@qq.com » 2016-04-25T07:24:15-07:00
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
Post
by snibgo » 2016-04-25T07:41:13-07:00
I would use exiftool for that job.
Bonzo
Posts: 2971 Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England
Post
by Bonzo » 2016-04-25T09:50:16-07:00
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
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2016-04-25T10:11:33-07:00
Imagemagick reads EXIF data, but does not write to it. As snibgo said above, use Exiftool.