#convert-images #image #sixel #cat #stdout #prints #grapics

app picat

Picat(图片猫)将图像文件转换为六色图形,并将它们打印到stdout

1 个不稳定版本

0.1.0 2021年12月2日

#15 in #sixel

MITGPL-3.0-or-later

45KB
257 代码行

picat - 图片猫

Picat将图像转换为六色图形,并将输出打印到stdout。该工具通过使用libimagequant库将RGBA图像转换为六色调色板,从而实现高质量的输出。

并非所有终端都支持六色。我亲自在Xorg上的xterm和Wayland上的foot上测试了picat。

USAGE:
    picat [OPTIONS] [<FILE>...]

    If FILE is omitted, picat reads a single image from stdin.

OPTIONS:
    -w, --width <pixels>    Output image width in pixels
    -h, --help              Display this help page

依赖项

~11MB
~53K SLoC