forked from solderpunk/AV-98
not trying to display absent images
This commit is contained in:
parent
e14009f2a4
commit
b1effe57b6
|
@ -84,6 +84,9 @@ if not _RENDER_IMAGE:
|
|||
|
||||
#return ANSI text that can be show by less
|
||||
def inline_image(img_file,width):
|
||||
#We don’t even try displaying pictures that are not there
|
||||
if not os.path.exists(img_file):
|
||||
return ""
|
||||
#Chafa is faster than timg inline. Let use that one by default
|
||||
inline = None
|
||||
ansi_img = ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user