在终端中渲染图像文件
lores的Python项目详细描述
在终端中渲染图像。发音为“lo res”。
安装
pip安装lores。完成。
知识取决于[枕头][],[请求][]和[变压][];以上 命令根据需要安装依赖项。
[枕头]:https://github.com/python-imaging/Pillow [请求]:https://github.com/kennethreitz/requests [变量]:https://github.com/philadams/vari
使用
在终端中呈现本地或远程图像:
lores fixtures/parrot.png lores –columns=40 http://octodex.github.com/images/original.jpg
啊![示例/example.png](./example/example.png)
帮助
如所料,通过-h或–help:
usage: lores [-h] [-c COLUMNS] imfile
Render images on the terminal. http://github.com/philadams/lores
- positional arguments:
- imfile image file to render
- optional arguments:
-h, --help show this help message and exit -c COLUMNS, --columns COLUMNS width of img in terminal columns
未来
- 更好的错误报告(不要只遵从请求或pil-libs)