Page 1 of 1

Adding current number into image and wait 1 second between output

Posted: 2016-01-08T18:10:35-07:00
by Zoker
Hi there,

Two questions:

1. I want to add the current number (%d) of the image at the right bottom corner in red. I read the annotation doc, but they just many things, about how to place it, so it's readable. I don't need that. I only want to place it there.
How can I do that? How can I set the font size?

2. I want to output images with different timestamp. Because imagemagick outputs them so fast, that many of them have the same timestamp. So I just want the command line to wait for 1 second, before outputting the next image.
How can I do that?

Thank you very much!
Zoker

Re: Adding current number into image and wait 1 second between output

Posted: 2016-01-08T18:15:21-07:00
by fmw42
What is your exact command line?

Always best to provide your IM version and platform when asking questions.

See viewtopic.php?f=1&t=9620

Re: Adding current number into image and wait 1 second between output

Posted: 2016-01-08T18:36:21-07:00
by fmw42
I do not think you can do either.

1) If you do

Code: Select all

convert rose: logo: -font arial -pointsize 14 -fill green1 -gravity southeast -annotate +0+0 "%s" image_%d.png
Both images get annotated with the scene number of the first image in the sequence.

2) I do not think there is a way to delay in a given command unless you write a loop and process each image separately and put a delay in the loop. But then you won't get different numbers attached to the file name unless you code that into the command sequence via the loop index.

Re: Adding current number into image and wait 1 second between output

Posted: 2016-01-08T18:51:54-07:00
by snibgo
fmw42 wrote:convert rose: logo: -font arial -pointsize 14 -fill green1 -gravity southeast -annotate +0+0 "%s" image_%d.png
"%p" instead of "%s" will do that job.

Re: Adding current number into image and wait 1 second between output

Posted: 2016-01-08T19:13:31-07:00
by fmw42
snibgo wrote:
fmw42 wrote:convert rose: logo: -font arial -pointsize 14 -fill green1 -gravity southeast -annotate +0+0 "%s" image_%d.png
"%p" instead of "%s" will do that job.
Thanks, snibgo. I missed that in the list of string format.