I noticed a small problem with animation - when viewing animated images is completed - when pressing ESC once, instead of closing the file, the program shows a "frozen frame" (i.e., instead of exiting, it pauses the animation). And only if you press ESC again, the view closes. If this is not a bug, then it is not entirely clear why this was done?
This does not happen with conventional formats, they have just pressing ESC is enough. In other viewers, such a problem is also not observed, a single press of ESC is enough there.
Observed in all versions. Windows 11.
1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Posts: 50
- Joined: Mon Feb 10, 2020 12:47 pm
-
- XnThusiast
- Posts: 1850
- Joined: Sat May 09, 2015 9:37 am
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
yeah, maybe its better to assign P to "Start/Stop animation" instead of ESC for Stop only
-
- Author of XnView
- Posts: 44470
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
ESC stops animation
Pierre.
-
- XnThusiast
- Posts: 1850
- Joined: Sat May 09, 2015 9:37 am
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
Why?
- ESC is default closing action, not stopping
- Exit Viewer is much more common action than Stop animation
- what is the reason to stop animation at the first place? If you need to go through frames, you can do it without stopping.
- why ESC does not stop video playbck in Viewer, but exits instead (consistancy issue)?
the solution
- do not stop animation on ESC press, just exit Viewer
- assign default shortcut to "Start/Stop animation", eg P
- the same "Start/Stop animation" shall work in video files as well (can be renamed to "Start/Stop playback" to better match both cases)
-
- Author of XnView
- Posts: 44470
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
it was always like that, even in Classic
Pierre.
-
- XnThusiast
- Posts: 1850
- Joined: Sat May 09, 2015 9:37 am
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
maybe its time to change as there is no justification (other than legacy) for current behaviour
-
- Posts: 50
- Joined: Mon Feb 10, 2020 12:47 pm
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
I agree with this opinion.
I'll give you an example of how it looks in practice. When viewing 20 GIFs from the file manager, I rarely need to use a pause (and if I do, it's more convenient to do it through frame viewing so that I can immediately switch to the next/previous frame). But I need to use ESC to close the file 20 times. And each time you have to press twice and spend time first stopping the animation, and only then on the main function...
-
- XnThusiast
- Posts: 1850
- Joined: Sat May 09, 2015 9:37 am
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
the issue is a bit deeper, as current .gif behaviour does not correlate with
"Pressing Esc once quits XnViewMP - Always" settings, that either poorly named or works incorrectly
"Pressing Esc once quits XnViewMP - Always" settings, that either poorly named or works incorrectly
-
- Author of XnView
- Posts: 44470
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
perhaps as an option...
Pierre.
-
- XnThusiast
- Posts: 1850
- Joined: Sat May 09, 2015 9:37 am
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
imho, no any extra option required as it will introduce more issues, eg with "Pressing Esc once quits XnViewMP" setting.
Just:
Just:
- remove Esc from "stop animation" action
it will make behaviour same as in other apps that closes animated gifs via single Esc (acdsee,irfanview,faststone)
- assign some key to existing "Start/Stop animation" action, eg P (Play/Pause)
- let "Start/Stop animation" action affect video files
-
- Posts: 50
- Joined: Mon Feb 10, 2020 12:47 pm
-
- Author of XnView
- Posts: 44470
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: 1.5.0 beta 4 - Closing an animation (PNG/GIF/JXL/WEBP) requires not a single, but a double press of ESC
Thanks to your detailed description I can reproduce the problem.
Pierre.