How to make gifs automatically repeat

Hello,
I am looking for a way to make the gif that I am downloading not only automatically play once it is has been loaded but also run at 5 FPS and automatically repeat. I do not want my player to have to use any keyboard commands so it will have to be entirely automated. The code below has been very helpful.
[A,map]=imread('giphy.gif','frames','all');
mov=immovie(A,map);
implay(mov, 1,)
Currently using the help function I have learnt to use implay(I) and implay(..., FPS) but these do not work together nor do they help with my automatic repeat requirement.
Any help would be appreciated.

Réponses (1)

Walter Roberson
Walter Roberson le 28 Nov 2016

0 votes

You could modify videofig File Exchange contribution if it does not already support repeating.

1 commentaire

Wilf Nelson
Wilf Nelson le 28 Nov 2016
How would I go about that for a gif I've found off the internet? the plan is to show memes from the internet as joke error messages for incorrect responses.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Animation dans Centre d'aide et File Exchange

Commenté :

le 28 Nov 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by