summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-25 14:53:09 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-25 14:53:09 +0100
commita9501c0596574970a6f6eefad27be9327a67fa94 (patch)
treeb786c8b29eb62f09b7a13eea9062d6eb0b1c7d66 /bin
parent7d91d0d4bfb72ff1d05408e0e9fc2ec4f8d4583f (diff)
cleanup
Diffstat (limited to 'bin')
-rwxr-xr-xbin/icat8
1 files changed, 4 insertions, 4 deletions
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