Fastest way to annotate a TIF image with date & time?
Posted: 2009-06-04T06:05:17-07:00
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
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,
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%
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,