use chafa by default if version >= 1.10

This commit is contained in:
Lionel Dricot 2023-09-15 21:54:51 +02:00
parent a2678bfdf5
commit f33a4cb1e9
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Changes since beta1
- fixes gophermap being considered as gemtext files
- fixes opening mailto links
- attempt at hiding XMLparsedAsHTMLWarning from BS4 library
- chafa now used by default everywhere if version > 1.10
## 2.0-beta1 - September 05th 2023
This is an an experimental release. Bug reports and feedbacks are welcome on the offpunk-devel list.

View File

@ -135,7 +135,9 @@ def terminal_image(img_file):
#Render by timg is better than old chafa.
# it is also centered
cmd = None
if _NEW_TIMG:
if _NEW_CHAFA:
cmd = "chafa -C on -d 0 --bg white -t 1 -w 1"
elif _NEW_TIMG:
cmd = "timg --loops=1 -C"
elif _HAS_CHAFA:
cmd = "chafa -d 0 --bg white -t 1 -w 1"