summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-25 17:21:39 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-25 17:21:39 +0100
commitdd8e2ebf43a233a9b241af200511bdbf5978ede2 (patch)
tree6c754ff838be08cba1ce2078e674f866628619d7 /bin
parent7f253bc79898d49ed7738fbf83d01f48b020f486 (diff)
parent825677d14f75673f34ce63fc888a446af55b1ae4 (diff)
Merge branch 'master' of github.com:mvertes/dotfiles
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