Page 1 of 1
GIF loop count is ignored
Posted: Wed Apr 24, 2024 5:08 pm
by dexter86
With GIF format you can set a custom loop count. You can even set it to "1", so gif will only play once and stop. I don't know if this is part of official specification, but Chrome & Firefox support this, but XnView doesn't (it just repeats gif in loops). You can see an example here
https://explosm.net/comics/imitation. And you can even edit loop count of existing gif on this page
https://ezgif.com/loop-count. Can you add support for this?
Re: GIF loop count is ignored
Posted: Wed Apr 24, 2024 5:22 pm
by user0
Re: GIF loop count is ignored
Posted: Wed Apr 24, 2024 6:38 pm
by dexter86
Re: GIF loop count is ignored
Posted: Sun Apr 28, 2024 1:38 pm
by Kadet
In the case of XnView, I'm not sure if it's a good idea to include the play count setting.
With infinite playback, at least I know what it looks like, which I might miss if the animation was played once.
Re: GIF loop count is ignored
Posted: Sun Apr 28, 2024 4:52 pm
by dexter86
Kadet wrote: Sun Apr 28, 2024 1:38 pm
I'm not sure if it's a good idea to include the play count setting.
That is exactly what we need. A setting, so user can decide if he wants gifs to play infinitely or according to loop count set in gif file.
Re: GIF loop count is ignored
Posted: Sun Apr 28, 2024 7:54 pm
by Kadet
dexter86 wrote: Sun Apr 28, 2024 4:52 pm
That is exactly what we need. A setting, so user can decide if he wants gifs to play infinitely or according to loop count set in gif file.
Checkbox in settings, it's good idea

Re: GIF loop count is ignored
Posted: Mon Apr 29, 2024 4:14 pm
by user0
Kadet wrote: Sun Apr 28, 2024 7:54 pm
dexter86 wrote: Sun Apr 28, 2024 4:52 pm
That is exactly what we need. A setting, so user can decide if he wants gifs to play infinitely or according to loop count set in gif file.
Checkbox in settings, it's good idea
I do not like checkboxes in Settings for such 'frequently accessed' stuff,
settings like 'Loop', 'Auto play' should be closer to user, eg see my suggestion for
Playbar
'Loop animation' setting can be in:
- Viewer>View menu
it already has 'Start/Stop animation'
- context menu
but it will require to make separate menu for images and multipage files
However, adding
Playbar for animation(multipage) files might be a solution (with option to disable it in Settings)
it will only need few more buttons: 'Previous frame', 'Next frame' and 'Loop'