View Single Post
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#11
Originally Posted by knobtviker View Post
Would it be too much to ask if you coukd write down exaxtly how it works with as much tech detail as possible?
You had my curiosity, but now you have my attention.
Allright, so normally the animated GIF's I have seen are usually fairly small, and each frame does match exactly the size of the first frame and is filled with the pattern to be shown.

The example picture of a dog is a bit different. There is one background layer with all content, and on top of that 60 layers with transparency set except for a small area that contains the dog's head and front paws. The aperture is same on all the top layers, so the animation effect is only contained on one small area.
This is really efficient way to keep the file size small compared to storing and redrawing the whole frame.

I would guess this is achieved by taking normal short movie sequence, then analysing the subsequent frames for movement/change that is over some treshold (we don't want tree leaves moving in wind I guess) with keeping precedence on the moving bits in the center of the frame, on the assumption that the user wants to emphasize the object near the center.

Then, calculate a mask for just the moving parts (mask could be single aperture an on this exampe or multi-aperture if there are more than one loci of movement)
I assume that the mask has to spread the area of movement through the entire sequence, so that it is identical for all frames. Otherwice the redraws would propably look quite messy.

This mask is then used to cut out the differing parts in frameset, and finally written to a single GIF file.
 

The Following User Says Thank You to juiceme For This Useful Post: