Message Boards Message Boards

GROUPS:

Combine animated gif with static gif

Posted 2 months ago
437 Views
|
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["https://media.giphy.com/media/5UCpmbzvZKQCfuF2P2/giphy.gif"];

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
Attachments
Remove
or Discard

Group Abstract Group Abstract