Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions lsix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ if [[ ${BASH_VERSINFO[0]} -eq 3 ]]; then
fi
fi

magick=$(type -p magick) # For ImageMagick 6 <-> 7 compatibility.
# For ImageMagick 6 <-> 7 compatibility.
magick=$(type -p magick)
if [[ ! $magick ]]; then
convert="convert"
else
convert="$magick"
fi

if ! command -v $magick montage >/dev/null; then
echo "Please install ImageMagick" >&2
Expand Down Expand Up @@ -101,7 +107,7 @@ autodetect() {

You may test your terminal by viewing a single image, like so:

$magick convert foo.jpg -geometry 800x480 sixel:-
$convert foo.jpg -geometry 800x480 sixel:-

If your terminal actually does support sixel, please file a bug
report at http://github.com/hackerb9/lsix/issues
Expand Down Expand Up @@ -240,7 +246,7 @@ main() {
shift
done
$magick montage "${onerow[@]}" $imoptions gif:- \
| $magick convert - -colors $numcolors sixel:-
| $convert - -colors $numcolors sixel:-
done
}

Expand Down