displaying animated gifs (but only one loop)

This commit is contained in:
Lionel Dricot 2022-03-30 14:35:37 +02:00
parent 3e560d21de
commit 026ce534ac
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@
- New behaviour for "find" (or "/") which is to grep through current page (ripgrep used if detected)
- Default width set to 80 as many gopherholes and gemini capsules have it hardcoded
- Streaming URL without valid content-length are now closed after 5Mo of download (thanks to Eoin Carney for reporting the issue)
- Gif animations are now displayed once when viewed (instead of a still frame).
- Restored some AV-98 certificate validation code that was lost Idont know how.
- Improved clarity of dependencies in "version"
- Fixed a crash when the cache is already a dir inside a dir.

View File

@ -126,9 +126,9 @@ def terminal_image(img_file):
# it is also centered
cmd = None
if _HAS_TIMG:
cmd = "timg --frames=1 -C"
cmd = "timg --loops=1 -C"
elif _HAS_CHAFA:
cmd = "chafa --bg white -w 1"
cmd = "chafa -d 0 --bg white -w 1"
if cmd:
cmd = cmd + " \"%s\""%img_file
subprocess.run(cmd,shell=True)