gifencoder icon indicating copy to clipboard operation
gifencoder copied to clipboard

Possible to change frame durations individually?

Open MoritzStefaner opened this issue 4 years ago • 2 comments

Hi, great library, thanks!

I was wondering if it's possible to change frame durations on a per-frame-basis?

MoritzStefaner avatar Aug 06 '21 11:08 MoritzStefaner

yes you can just run encoder.setDelay before the encoder.addFrame and it will change the framerate. The frame rate will stay like that unless you change it back before the next frame.

skeddles avatar Sep 06 '21 19:09 skeddles

Ah, great! Thanks.

On 6. Sep 2021, 21:27 +0200, Sam Keddy @.***>, wrote:

yes you can just run encoder.setDelay before the encoder.addFrame and it will change the framerate. The frame rate will stay like that unless you change it back before the next frame. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

MoritzStefaner avatar Sep 07 '21 08:09 MoritzStefaner