6
$\begingroup$

I'm trying to export a table of graphics into a gif animated file with just one repetition.

Export["C:\Race.gif", t, "AnimationRepetitions" -> 1] 

It doesn't work. The exported gif repeats and repeats over.

What should I do?

$\endgroup$
  • 1
    $\begingroup$ How do you know who is failing there? The Gif's generator or the renderer? $\endgroup$ – Dr. belisarius Oct 31 '14 at 11:13
  • $\begingroup$ @belisarius You mean the program which opens my gif's may fail to repeat it once, don't you? $\endgroup$ – Behzad Oct 31 '14 at 11:28
  • 2
    $\begingroup$ Yep. See (for example) superuser.com/a/159216/38729 $\endgroup$ – Dr. belisarius Oct 31 '14 at 11:57
  • $\begingroup$ @belisarius You're right! I changed the code to "AnimationRepetitions" -> 0 (instead of 1) and opened the gif in Chrome. It ran just once. Thanks. $\endgroup$ – Behzad Oct 31 '14 at 14:23
  • 1
    $\begingroup$ @Behzad Good then :) I'm deleting my comments. $\endgroup$ – Öskå Oct 31 '14 at 15:40
4
$\begingroup$

Solved. I changed the code to "AnimationRepetitions" -> 0 (instead of 1) and opened the gif in Chrome. It ran just once. My bad! I had not considered trying another way to open the gif. I overtrusted my gif renderer.

$\endgroup$
  • 2
    $\begingroup$ This option gives error in 11.3 The value 0 specified for the option AnimationRepetitions is invalid $\endgroup$ – Nasser Apr 22 '18 at 23:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.