2020-11-26 14:19:00 +00:00
|
|
|
|
# asciiart
|
|
|
|
|
|
|
|
|
|
> 将图像转换为 ASCII.
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 更多信息: <https://github.com/nodanaonlyzuul/asciiart>.
|
2020-11-26 14:19:00 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 从文件中读取图像并以 ASCII 打印:
|
2020-11-26 14:19:00 +00:00
|
|
|
|
|
|
|
|
|
`asciiart {{路径/image.jpg}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 从 URL 中读取图像并以 ASCII 打印:
|
2020-11-26 14:19:00 +00:00
|
|
|
|
|
|
|
|
|
`asciiart {{www.example.com/image.jpg}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 选择输出宽度(默认为 100):
|
2020-11-26 14:19:00 +00:00
|
|
|
|
|
|
|
|
|
`asciiart -width {{50}} {{路径/image.jpg}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 对 ASCII 输出进行着色:
|
2020-11-26 14:19:00 +00:00
|
|
|
|
|
|
|
|
|
`asciiart --color {{路径/image.jpg}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 选择输出格式(默认格式为文本):
|
2020-11-26 14:19:00 +00:00
|
|
|
|
|
|
|
|
|
`asciiart --format {{text|html}} {{路径/image.jpg}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 反转字符映射:
|
2020-11-26 14:19:00 +00:00
|
|
|
|
|
|
|
|
|
`asciiart --invert-chars {{路径/image.jpg}}`
|