Fastest way to annotate a TIF image with date & time?

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
jaffamuffin
Posts: 59
Joined: 2009-01-30T03:46:08-07:00

Fastest way to annotate a TIF image with date & time?

Post by jaffamuffin »

Hi

I'm trying to caption a 3300x2300 (200dpi A3) image with the date and time of creation and I have tried the ways in the documentation and came up with this:

ifp = input file
ofp = output file
ts = timestamp string

Code: Select all


convert %ifp% ^
	-quiet ^
	-background white ^
	-pointsize 20 ^
	label:"%ts%" ^
	-gravity SouthEast -append ^
	-compress group4 -define polarity=min-is-white %ofp%
Using latest image magick (6.5.2-4 on winxp)

This adds a strip on the bottom with the required info.

But seems to take a while... the images are ~105KB Group4 tiff, uncompressed about 960KB.

Some figures - 1 hour to process 250 images on my Pentium 4
30 mins to process 259 images on a C2D 2Ghz
15 mins to process 500 images on a 8core 3.2 Ghz box running 3 instances of the script...

Sadly I don't have access to the 8core server to do this on so perhaps the above could be speeded up somehow?

Each directory wil contain no more than 100 images or so, can I use file globbing somehow?

Regards,
Post Reply