Message Boards Message Boards

0
|
4031 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Combine animated gif with static gif

Posted 3 years ago

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?

POSTED BY: Steven Buehler
2 Replies
Posted 3 years 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 BY: Rohit Namjoshi
Posted 3 years ago

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

POSTED BY: Yasmin Hussain
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