displaying animated gifs (but only one loop)
This commit is contained in:
parent
3e560d21de
commit
026ce534ac
|
@ -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 I don’t know how.
|
||||
- Improved clarity of dependencies in "version"
|
||||
- Fixed a crash when the cache is already a dir inside a dir.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue