But i want those two images animated together. They are different sizes.
First image(background) is bigger than the second.
Code: Select all
convert anim_1.gif anim_2.gif -gravity center -compose over -composite output.gif
Code: Select all
convert anim_1.gif anim_2.gif -gravity center -compose over -composite output.gif
Code: Select all
convert \( image1.gif -coalesce \) null: \( image2.gif -coalesce \) -gravity center -layers composite result.gif
Code: Select all
convert ^
( stars.gif -layers coalesce ) ^
( -clone 0--1 ) ^
( -clone 0--1 ) ^
NULL: ^
( moon.gif -layers coalesce -transparent Black ) ^
-gravity Center ^
-layers composite ^
-layers compress ^
moonStars.gif
You should use the same number of frames in both sets of images. I duplicated your stars to make them roughly the same number.agriz wrote:If i use another background with few more frames, moon.gif is not displayed on all the frames of background. it goes and comes.
No, you get the number of frames in the first set of images.agriz wrote:Otherwise the the size will become bigger