GIF loop count is ignored

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
dexter86
Posts: 16
Joined: Mon Aug 14, 2023 11:30 pm

GIF loop count is ignored

Post 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?
User avatar
user0
XnThusiast
Posts: 2409
Joined: Sat May 09, 2015 9:37 am

Re: GIF loop count is ignored

Post by user0 »

dexter86
Posts: 16
Joined: Mon Aug 14, 2023 11:30 pm

Re: GIF loop count is ignored

Post by dexter86 »

Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: GIF loop count is ignored

Post 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.
dexter86
Posts: 16
Joined: Mon Aug 14, 2023 11:30 pm

Re: GIF loop count is ignored

Post 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.
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: GIF loop count is ignored

Post 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 👍
User avatar
user0
XnThusiast
Posts: 2409
Joined: Sat May 09, 2015 9:37 am

Re: GIF loop count is ignored

Post 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'
Post Reply