# Is it possible to have variable frame time for each frame in a gif or apng image?

**URL:** <https://discourse.julialang.org/t/is-it-possible-to-have-variable-frame-time-for-each-frame-in-a-gif-or-apng-image/32948>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 3, 2020, 11:44pm UTC](https://discourse.julialang.org/t/is-it-possible-to-have-variable-frame-time-for-each-frame-in-a-gif-or-apng-image/32948 "2020-01-03T23:44:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coldinjection](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/coldinjection/32/51061_2.png) [@coldinjection](https://discourse.julialang.org/u/coldinjection)\
**Post date:** [January 3, 2020, 11:44pm UTC](https://discourse.julialang.org/t/is-it-possible-to-have-variable-frame-time-for-each-frame-in-a-gif-or-apng-image/32948/1 "2020-01-03T23:44:57Z")

</div>

Say I want a specific frame (or multiple frames) to be displayed for a longer period of time in a gif or an apng, the file would be smaller if I specify a longer frame time for this frame instead of having the same image displayed in multiple consecutive frames having a short standard frame time.  
I vaguely remember it is achievable in Matlab because you can specify the delay when appending each frame.  
Is it possible in Julia? Is there any package that supports this?

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [January 4, 2020, 8:06am UTC](https://discourse.julialang.org/t/is-it-possible-to-have-variable-frame-time-for-each-frame-in-a-gif-or-apng-image/32948/2 "2020-01-04T08:06:46Z")

</div>

I believe `ffmpeg` has something called `filtergraph`, which can do this. So if a Julia workflow has a customisable `ffmpeg` stage, you’re in luck. VideoIO.jl could do this as well, I suppose.
