Skip to main content
edited tags
Link
Kuba
  • 137.7k
  • 13
  • 289
  • 751
Tweeted twitter.com/StackMma/status/988314056057655296
deleted 25 characters in body
Source Link
Nasser
  • 150.5k
  • 12
  • 161
  • 374

There is similar question here exporting-animated-gifs-animationrepetitions-1-doesnt-work

But the accepted answer there no longer works in 11.3, which is to use "AnimationRepetitions" -> 0 as it gives error

Export::erropts: The value 0 specified for the option AnimationRepetitions is invalid.

I need the animated gif file to play once and stop. By default, with no options, the animation in the Chrome browser always plays 2 times and then stops. I also tested it in FireFox.

The help page on AnimationRepetitionsAnimationRepetitions does not say anything about how to make it play only once. Using "AnimationRepetitions" -> 1 has no effect also, it plays 2 times always then stops. Has this changed in 11.3 from the time of the accepted answer above?

Here is MWE

SetDirectory[NotebookDirectory[]];
r=Table[
   Grid[{{Row[{"time ",t}]},
   {
     Plot[Sin[t x],{x,-2 Pi,2 Pi}]
   }}],
   {t,0,10,0.5}
];
Export["anim0.gif",r,"AnimationRepetitions"->1]

loading the above animation to the browser (drag the file and drop it on a web page that is open), will show it plays 2 times.

question: How to make it play only once in 11.3? Is there other options to use? Version 11.3 on windows 7 home edition.

There is similar question here exporting-animated-gifs-animationrepetitions-1-doesnt-work

But the accepted answer there no longer works in 11.3, which is to use "AnimationRepetitions" -> 0 as it gives error

Export::erropts: The value 0 specified for the option AnimationRepetitions is invalid.

I need the animated gif file to play once and stop. By default, with no options, the animation in the Chrome browser always plays 2 times and then stops. I also tested it in FireFox.

The help page on AnimationRepetitions does not say anything about how to make it play only once. Using "AnimationRepetitions" -> 1 has no effect also, it plays 2 times always then stops. Has this changed in 11.3 from the time of the accepted answer above?

Here is MWE

SetDirectory[NotebookDirectory[]];
r=Table[
   Grid[{{Row[{"time ",t}]},
   {
     Plot[Sin[t x],{x,-2 Pi,2 Pi}]
   }}],
   {t,0,10,0.5}
];
Export["anim0.gif",r,"AnimationRepetitions"->1]

loading the above animation to the browser (drag the file and drop it on a web page that is open), will show it plays 2 times.

question: How to make it play only once in 11.3? Is there other options to use? Version 11.3 on windows 7 home edition.

There is similar question here exporting-animated-gifs-animationrepetitions-1-doesnt-work

But the accepted answer there no longer works in 11.3, which is to use "AnimationRepetitions" -> 0 as it gives error

Export::erropts: The value 0 specified for the option AnimationRepetitions is invalid.

I need the animated gif file to play once and stop. By default, with no options, the animation in the Chrome browser always plays 2 times and then stops. I also tested it in FireFox.

The help page on AnimationRepetitions does not say anything about how to make it play only once. Using "AnimationRepetitions" -> 1 has no effect also, it plays 2 times always then stops. Has this changed in 11.3 from the time of the accepted answer above?

Here is MWE

SetDirectory[NotebookDirectory[]];
r=Table[
   Grid[{{Row[{"time ",t}]},
   {
     Plot[Sin[t x],{x,-2 Pi,2 Pi}]
   }}],
   {t,0,10,0.5}
];
Export["anim0.gif",r,"AnimationRepetitions"->1]

loading the above animation to the browser (drag the file and drop it on a web page that is open), will show it plays 2 times.

question: How to make it play only once in 11.3? Is there other options to use? Version 11.3 on windows 7 home edition.

Source Link
Nasser
  • 150.5k
  • 12
  • 161
  • 374

How to make animated gif file play once in 11.3?

There is similar question here exporting-animated-gifs-animationrepetitions-1-doesnt-work

But the accepted answer there no longer works in 11.3, which is to use "AnimationRepetitions" -> 0 as it gives error

Export::erropts: The value 0 specified for the option AnimationRepetitions is invalid.

I need the animated gif file to play once and stop. By default, with no options, the animation in the Chrome browser always plays 2 times and then stops. I also tested it in FireFox.

The help page on AnimationRepetitions does not say anything about how to make it play only once. Using "AnimationRepetitions" -> 1 has no effect also, it plays 2 times always then stops. Has this changed in 11.3 from the time of the accepted answer above?

Here is MWE

SetDirectory[NotebookDirectory[]];
r=Table[
   Grid[{{Row[{"time ",t}]},
   {
     Plot[Sin[t x],{x,-2 Pi,2 Pi}]
   }}],
   {t,0,10,0.5}
];
Export["anim0.gif",r,"AnimationRepetitions"->1]

loading the above animation to the browser (drag the file and drop it on a web page that is open), will show it plays 2 times.

question: How to make it play only once in 11.3? Is there other options to use? Version 11.3 on windows 7 home edition.