Page 1 of 1
I need your help with merging several animated images
Posted: 2008-10-12T10:12:00-07:00
by marke
I have a serious problem trying to merge several animated images.
help me!
http://www.cq100.cn/indemand/
Re: I need your help with merging several animated images
Posted: 2008-10-12T13:49:06-07:00
by fmw42
I am no expert on these matters. Hopefully you can get some help from Anthony. But you have to consider that in gen eral the number of frames and delays per frame should be the same otherwise it is much harder. See
http://www.imagemagick.org/Usage/anim_mods/#complex
Re: I need your help with merging several animated images
Posted: 2008-10-13T22:40:56-07:00
by marke
"But you have to consider that in gen eral the number of frames and delays per frame should be the same otherwise it is much harder."
That's the point!
The number of frames and delays per frame is not the same at all...
Disappointed, maybe nobody can solve it.......
Re: I need your help with merging several animated images
Posted: 2008-10-13T23:21:20-07:00
by fmw42
marke wrote:"But you have to consider that in gen eral the number of frames and delays per frame should be the same otherwise it is much harder."
That's the point!
The number of frames and delays per frame is not the same at all...
Disappointed, maybe nobody can solve it.......
The best I can offer is again to look at Anthony's pages and in particular
http://www.imagemagick.org/Usage/anim_mods/#merge for Merging Time Disjoint Animations
Re: I need your help with merging several animated images
Posted: 2008-10-14T23:23:41-07:00
by anthony
First this should be in the users forum rather than the developers forum.
However essentually what I have listed in the 'merge' reference above is what is needed. first you need to sort out and duplicate (time wise) each animation so they have the same loop length, the same number of frames, and the same time index at each frame. Typically that is done by duplicating a frame in on animation so the time index (since start of animation) is the same as an examisting frame in the other animation.
For example supose you have two animations of three frame with time delays of
10 10 10
5 5 20
both animations are 30 time units long already so that is not a problem.
Now convert the above to the time index when each frame should appear...
0 10 20 __ both loops
0 5 10 at 30
from this you can see that you need to insert some extra frames to make them match the first frame of the first animatio needs to be repeated a 5
0,5 10 20
0 5 10
Now the last frame of the second animation also needs to be duplicated at time index 20
0,5 10 20
0 5 10, 20
where the ',' means the same frame is just repeated.
Now the frames can be merged (composited) together and you get a you get a single merged animation 4 frames long from the two 3 frame animations.
I have added the above to the raw notes for merging animations