方法比较复杂,不懂命令行的勿进。
1. Install ImageMagick
How to do it is up to you. Personally I installed the MacPorts first, then installed ImageMagick by running a simple command “sudo port install ImageMagick” in a terminal on a Mac running Leopard. You can certainly try the pre-compiled binaries if you’d like.
2. Get the font
To make it look like the old 35mm point-and-shoot film camera’s time stamp, you can use a LCD font. Simply downloaded it and unpacked it somewhere. You don’t have to install the fonts. The script can work by a direct link to the font file location.
3. Get the code
4. Do the work
Copy the code into a text editor, save it as “dtstamp.sh” or anything you like. Please note you need to change the 3rd line in the code to point to the font file location.
Run the following command to make it executable
chmod +x dtstamp.sh
To use it, simply run it like this
./dtstamp.sh directory/*.jpg
Or,
./dtstamp.sh file1.jpg file2.jpg...
After it runs, the script will produce files with “_DT” inserted between the original file name and file extension. The original file is unmodified.
Reference: http://dptnt.com/2009/08/add-date-time-stamp-to-jpeg-photos-using-free-s...
评论