adjoining animated gif produces frames of changed data...
Posted: 2007-04-03T10:58:18-07:00
Greetings..
I am writing a function that overlays one animated gif onto another.
Currently I loop through both animated gifs and create frames using +adjoin... and then blend the frames together .. (repeating the one with fewer frames if applicable)
What I am finding is that the animated gif frames contain only the graphical data that has changed from the previous frame. So all of the information is in the 000_whatever.gif file and 001_whatever.gif contains mostly transparent background and just image where it has changed.
The way I have tried to fix this is after I have created the frames.. I loop through the frames again and place a copy of the first frame in the background. The problem with this is that the image border is reduced to only be the size of the changed image and I can't line them up.
So.. for example:
When I programatically place this:
On top of this:
I get:
so..
1. - Is there a way to get all of the animated gif frame information (not just the changed information)
--if not then --
2. - Is there a wayto force the borders and size when initially creating the idividual frames to maintain their location in relation to the first frame?
Any help would be greatly appreciated.
I am writing a function that overlays one animated gif onto another.
Currently I loop through both animated gifs and create frames using +adjoin... and then blend the frames together .. (repeating the one with fewer frames if applicable)
What I am finding is that the animated gif frames contain only the graphical data that has changed from the previous frame. So all of the information is in the 000_whatever.gif file and 001_whatever.gif contains mostly transparent background and just image where it has changed.
The way I have tried to fix this is after I have created the frames.. I loop through the frames again and place a copy of the first frame in the background. The problem with this is that the image border is reduced to only be the size of the changed image and I can't line them up.
So.. for example:
When I programatically place this:
On top of this:
I get:
so..
1. - Is there a way to get all of the animated gif frame information (not just the changed information)
--if not then --
2. - Is there a wayto force the borders and size when initially creating the idividual frames to maintain their location in relation to the first frame?
Any help would be greatly appreciated.