Stupid blending question....
Posted: 2009-11-15T14:30:59-07:00
Hi, guys... new to IM, trying to create a blending animation...
The basic command I'm using is:
convert -delay 100 a.png -alpha off -alpha set
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 0 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 20 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 40 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 60 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 80 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 100 -composite \)
-delete 0 -loop 0 -layers Optimize test2.gif
It's supposed to take a.png and transition to b.png over six total images. What I get are six identical images with a.png and b.png merged, each at 100%.
So, two questions:
1) Obviously, I'm missing something stupid. But, what?
2) Is there a better/easier way for me to accomplish the task?
I'd like answers to both questions, if possible, so I can learn where I went wrong as well as any better methods.
Thanks,
Marc
The basic command I'm using is:
convert -delay 100 a.png -alpha off -alpha set
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 0 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 20 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 40 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 60 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 80 -composite \)
\( -clone 0 b.png -alpha off -alpha set -compose blend -set "option:compose:args" 100 -composite \)
-delete 0 -loop 0 -layers Optimize test2.gif
It's supposed to take a.png and transition to b.png over six total images. What I get are six identical images with a.png and b.png merged, each at 100%.
So, two questions:
1) Obviously, I'm missing something stupid. But, what?
2) Is there a better/easier way for me to accomplish the task?
I'd like answers to both questions, if possible, so I can learn where I went wrong as well as any better methods.
Thanks,
Marc