phw / peek

Simple animated GIF screen recorder with an easy to use interface
GNU General Public License v3.0
10.3k stars 321 forks source link

Option to turn off endless loop on animated GIF #637

Open ghost opened 4 years ago

ghost commented 4 years ago

Is it possible to add an option to set the loop counter in an animated GIF so it's not always an endless loop? (default=0) I could see a checkbox "endless loop" (and unchecked repeats once), or I can see a number value allowing multiple loops and then ending.

Personally I would prefer the first option (simplicity) but I can imagine use cases for the second option too (versatility).

StefRe commented 3 years ago

Would be nice to have such an option. For the time being you can use ImageMagick or ffmpeg to change the loop counter in the NAB using e.g. convert infile.gif -loop 2 outfile.gif or ffmpeg -i infile.gif -loop 2 -c copy outfile.gif to set it to 2 loops.
Not all programs, however, honor the loop count.