Add system date & time to image
Posted: 2013-10-07T19:32:53-07:00
I want to be able to add the system time and date (not EXIF tag data) to an image running from command line. For the life of me, I cannot figure out how to get the system date. I am using IM on linux. (I have found on windows I can use %TIME% to return the system date and time, but doesn't work on linux). Here's an example, and I'm not sure what to put in place of SYSTEM_TIME_HERE to get the system date/time to annotate. Any help appreciated.
Code: Select all
convert source.jpg -pointsize 24 -fill white -undercolor '#00000080' -gravity SouthEast -annotate +0+5 SYSTEM_TIME_HERE output.jpg