Message Boards Message Boards


Combine animated gif with static gif

Posted 2 months ago
2 Replies
1 Total Likes

Trying to overlay an animated .gif over a static background .gif to export as a single .gif with the animation playing over the background. Can't figure out how. Ideas?

2 Replies
Posted 2 months ago

Hi Steven,

You can try using Overlay. e.g.

gif = Import[""];

overlaid = 
  Overlay[{ExampleData[{"TestImage", "Moon"}], ImageResize[#, 200]}, 
     Alignment -> Center] & /@ gif;

Export["overlaid.gif", overlaid]
Posted 2 months ago

Oh, I have also been looking for the how. Surely will try this. Thank you.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract