Images: Fix broken image sizing
This commit is contained in:
parent
db4c19cc58
commit
853bd8c941
1 changed files with 2 additions and 5 deletions
7
neofetch
7
neofetch
|
@ -2339,20 +2339,17 @@ make_thumbnail() {
|
||||||
display_image() {
|
display_image() {
|
||||||
case "$image_backend" in
|
case "$image_backend" in
|
||||||
"caca")
|
"caca")
|
||||||
img2txt -W "$((width / font_width))" -H "$((height / font_height))" --gamma=0.6 "$image" || to_off "Images: catimg failed to display the image."
|
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))"
|
|
||||||
zws=
|
zws=
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"catimg")
|
"catimg")
|
||||||
catimg -w "$columns" "$image" || to_off "Images: catimg failed to display the image."
|
catimg -w "$((columns + gap))" "$image" || to_off "Images: catimg failed to display the image."
|
||||||
text_padding="$((columns / 2 + gap))"
|
|
||||||
zws=
|
zws=
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"jp2a")
|
"jp2a")
|
||||||
jp2a --width="$((width / font_width))" --colors "$image" || to_off "Images: jp2a failed to display the image."
|
jp2a --width="$((width / font_width))" --colors "$image" || to_off "Images: jp2a failed to display the image."
|
||||||
text_padding="$((columns / 2 + gap))"
|
|
||||||
zws=
|
zws=
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue