From a9501c0596574970a6f6eefad27be9327a67fa94 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 25 Jan 2025 14:53:09 +0100 Subject: cleanup --- bin/icat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/icat') diff --git a/bin/icat b/bin/icat index d363e09..118de7b 100755 --- a/bin/icat +++ b/bin/icat @@ -1,6 +1,6 @@ #!/bin/sh -e # Display images directly in terminal. -# Tested with xterm v361. Depends on imagemagick convert(1). +# Tested with xterm v361. Depends on magick(1). [ "$LC_TERMINAL" = iTerm2 ] && [ -x "$HOME/.iterm2/imgcat" ] && exec "$HOME/.iterm2/imgcat" "$@" @@ -25,7 +25,7 @@ clearline() { printf "\r \r" ms=$(maxsize) -# Use convert(1) from imagemagick to output sixel format. +# Use magick(1) from imagemagick to output sixel format. # -flatten uses the terminal background color as transparent layer # -resize use the terminal size as bounding box, with a limit of 1000 pixels # image is not resized if smaller than limit @@ -45,7 +45,7 @@ done shift $((OPTIND - 1)) [ "$#" = 0 -o "$#" = 1 -a "$1" = - ] && { - convert -resize "$ms>" - sixel:- + magick - -resize "$ms>" sixel:- exit } @@ -58,5 +58,5 @@ for f; do [ "$clear" ] && clear clearline $put "%s\n" "$f" - convert -resize "$ms>" -- "$f" sixel:- + magick "$f" -resize "$ms>" sixel:- done -- cgit v1.2.3