> On what you wrote, I can't tell why you want to do this.
The goal is to assemble an number of draw options, say 100, for a
single command line:
convert -draw spec1 -draw spec2 ......... -draw spec3 in.gif out.gif
This is to reduce hdd activity.
convert is also pipable, such as
convert -draw spec1 in.gif - | convert -draw spec2 - - | convert
-draw spec3 - out.gif
but I have not been able figure out how to do the piping in the
following paradigm:
for i in `seq 1 100`; do
x1= ....
y1=.....
x2=....
y2=....
spec=`printf "line %d,%d,%d,%d" x1 y1 x2 y2`
convert -draw $spec - -
done
but maybe by looking at your myconvert function, i can figure it out.
i also tried using a tmpfs filesystem but had read errors after a dozen
iterations through the loop.
> But, I imaging
> the use of a function to wrap convert will get you their more easily.
>
> myconvert () {
> case $1 in
> line)
> convert -draw "$1 $2,$3,$4,$5" /dev/stdin /dev/stdout
> ;;
> *)
> echo "I can't do $@" >/dev/stderr
> return 1
> ;;
> esac
>
> myconvert line $a $b $c $d <somefile.jpg >out.jpg
>
> (untested)
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list