4
$\begingroup$

I have a GIF on my machine that I have imported via

gifLst = Import["/path/to/my/file.gif"]

When I then export it to the cloud, it gets slowed down in its animation speed:

CloudExport[gifLst, "GIF", "cloud/path/file.gif", Permissions -> "Public"]

Is there a way to retain the animation speed when importing and re-exporting like this?

Original GIF (normal speed)

Original GIF (normal speed)

Wolfram imported GIF (slowed speed)

Wolfram imported GIF (slowed speed)

Original GIF

$\endgroup$

1 Answer 1

6
$\begingroup$

Maybe extract "DisplayDurations" from the original gif.

gif = Import["https://s3.gifyu.com/images/12th_NUC.gif"];
durations = 
 Import["https://s3.gifyu.com/images/12th_NUC.gif", 
  "DisplayDurations"];
Export["test.gif", gif, "DisplayDurations" -> durations]
SystemOpen["test.gif"]
$\endgroup$

Your Answer

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

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