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$
7
  • 1
    $\begingroup$ How do you know who is failing there? The Gif's generator or the renderer? $\endgroup$ Commented Oct 31, 2014 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
    Commented Oct 31, 2014 at 11:28
  • 2
    $\begingroup$ Yep. See (for example) superuser.com/a/159216/38729 $\endgroup$ Commented Oct 31, 2014 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
    Commented Oct 31, 2014 at 14:23
  • 1
    $\begingroup$ @Behzad Good then :) I'm deleting my comments. $\endgroup$
    – Öskå
    Commented Oct 31, 2014 at 15:40

1 Answer 1

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$
1
  • 2
    $\begingroup$ This option gives error in 11.3 The value 0 specified for the option AnimationRepetitions is invalid $\endgroup$
    – Nasser
    Commented Apr 22, 2018 at 23:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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