File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
# Requirements: just ImageMagick (and a Sixel terminal, of course)
7
7
8
- # Version 1.8.2
9
- # B9 November 2023
8
+ # Version 1.9
9
+ # B9 June 2024
10
10
11
11
# See end of file for USAGE.
12
12
@@ -54,7 +54,9 @@ if [[ ${BASH_VERSINFO[0]} -eq 3 ]]; then
54
54
fi
55
55
fi
56
56
57
- if ! command -v montage > /dev/null; then
57
+ magick=$( type -p magick) # For ImageMagick 6 <-> 7 compatibility.
58
+
59
+ if ! command -v $magick montage > /dev/null; then
58
60
echo " Please install ImageMagick" >&2
59
61
exit 1
60
62
fi
@@ -103,7 +105,7 @@ autodetect() {
103
105
104
106
You may test your terminal by viewing a single image, like so:
105
107
106
- convert foo.jpg -geometry 800x480 sixel:-
108
+ $magick convert foo.jpg -geometry 800x480 sixel:-
107
109
108
110
If your terminal actually does support sixel, please file a bug
109
111
report at http://github.com/hackerb9/lsix/issues
@@ -241,8 +243,8 @@ main() {
241
243
onerow[len++]=" file://$1 "
242
244
shift
243
245
done
244
- montage " ${onerow[@]} " $imoptions gif:- \
245
- | convert - -colors $numcolors sixel:-
246
+ $magick montage " ${onerow[@]} " $imoptions gif:- \
247
+ | $magick convert - -colors $numcolors sixel:-
246
248
done
247
249
}
248
250
You can’t perform that action at this time.
0 commit comments