Annotate with leading zeros?
Posted: 2019-07-01T05:48:32-07:00
I'm creating a numbered image sequence using:
for i in `seq 001 300`
do convert -size 2048x1080 xc:none -font arial -fill black -pointsize 48 -annotate +100+100 $i output_$(printf %04d $i).png
done
This works well but I would like the annotation text to be 001, 002, etc. rather than 1,2,3,10,13,137.
How do I do that?
for i in `seq 001 300`
do convert -size 2048x1080 xc:none -font arial -fill black -pointsize 48 -annotate +100+100 $i output_$(printf %04d $i).png
done
This works well but I would like the annotation text to be 001, 002, etc. rather than 1,2,3,10,13,137.
How do I do that?