yum install imagemagick
项目主页
https://github.com/hackerb9/lsix/
wget https://github.com/hackerb9/lsix/archive/master.zip
unzip master.zip
sudo cp lsix-master/lsix /usr/local/bin/
sudo chmod +x /usr/local/bin/lsix
lsix很快安装完毕,只要你用的命令行软件,支持xterm就可以玩耍了
lsix 1.jpeg
windows下有很好的支持xterm的linux连接软件
我的MAC电脑,无效
mac上安装iterm2[这个软件看起来很强大,要替代我的默认的工具了]
安装iterm2
办法1:命令行安装
brew tap caskroom/cask # 首次安装需执行该条命令
$ brew cask install iterm2 # 安装iterm2
办法2:下载安装
https://www.iterm2.com/downloads.html
下载完毕就是一个app软件,绿色软件,拖到/Application里就好了。
MAC 自带的软件打开如下
# lsix 1.jpeg
Error: Your terminal does not report having sixel graphics support.
Please use a sixel capable terminal, such as xterm -ti vt340, or
ask your terminal manufacturer to add sixel support.
You may test your terminal by viewing a single image, like so:
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
(Please mention device attribute codes: ^[[?1;2c)
用iterm2 打开如下