From 853bd8c941b101cf3ee6d4aa7575d35741cc394a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 15 Jan 2017 00:19:09 +1100 Subject: [PATCH] Images: Fix broken image sizing --- neofetch | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 2c1abfe9..70434f7f 100755 --- a/neofetch +++ b/neofetch @@ -2339,20 +2339,17 @@ make_thumbnail() { display_image() { case "$image_backend" in "caca") - img2txt -W "$((width / font_width))" -H "$((height / font_height))" --gamma=0.6 "$image" || to_off "Images: catimg failed to display the image." - text_padding="$((columns / 2 + gap))" + img2txt -W "$((width / font_width)))" -H "$((height / font_height))" --gamma=0.6 "$image" || to_off "Images: catimg failed to display the image." zws= ;; "catimg") - catimg -w "$columns" "$image" || to_off "Images: catimg failed to display the image." - text_padding="$((columns / 2 + gap))" + catimg -w "$((columns + gap))" "$image" || to_off "Images: catimg failed to display the image." zws= ;; "jp2a") jp2a --width="$((width / font_width))" --colors "$image" || to_off "Images: jp2a failed to display the image." - text_padding="$((columns / 2 + gap))" zws= ;;