[magick-users] loop to make 300 images

Fred Weinhaus fmw at alink.net
Mon Jun 2 09:29:12 PDT 2008


Not correct while syntax for unix

replace for i while i<300

with (note space after [ and before ])

while [ $i -lt 300 ]
do
...
done

In unix use only one \ for continuation


>Friends,
>
>I have been trying to make seq of images .
>I have tried mostly on windows - but i have also tried linux sh.
>nether of my efforts have worked.
>
>goal :: create 300 pngs , size = 720x480 , each is Black with white text of
>1 incrementing to 300 , 0-300.pngs
>
>--------------------( linix
>
>in a file make300.sh
>
>#!/bin/sh
>for i while i<300
>do
>echo $i
>mogrify -normalize \\
>-size 720 x 480 \\
>-bordercolor yellow -border 5 \\
>-fill white \\
>-font \\
>-*-Times \\
>-gravity center \\
>-draw 'text 20,20 $i\\
>$i.png
>$i=$i+1
>done


More information about the Magick-users mailing list