#image #terminal #view

bin+lib termage

在终端中显示图像!

4 个稳定版本

使用旧的 Rust 2015

1.1.1 2018 年 5 月 11 日
1.1.0 2018 年 4 月 25 日
1.0.1 2018 年 2 月 11 日
1.0.0 2018 年 2 月 10 日

#124 in #view

MIT/Apache

12KB
167 代码行

在您的终端中查看图像和动图! 🖼️🖥️

安装

您可以使用 Cargo 安装

cargo install termage

或者您可以克隆存储库并构建二进制文件

git clone https://github.com/calum/terminal_image_display
cd terminal_image_display
cargo run -- --image ferris.png

用法

$ termage --help

Termage 1.0.1
https://github.com/calum/terminal_image_display
Display any image in the terminal with Termage!

USAGE:
    termage [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -g, --gif <FILE>      Input animated gif filepath
    -i, --image <FILE>    Input image filepath

示例输出

termage -i ferris.png

termage -g pika.gif

termage -i pika.png

依赖项

~5MB
~84K SLoC