在终端中渲染图像文件

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, --helpshow this help message and exit
-c COLUMNS, --columns COLUMNS
width of img in terminal columns

未来

  • 更好的错误报告(不要只遵从请求或pil-libs)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
serversocket Java服务器socket中断如何   java通过随机类和排序为数组生成数据   @Column length大于255个字符的java实体   java在使用NIO2 API时消除检查异常   java使用用户凭据通过Microsoft Graph API上的控制台应用程序发送电子邮件   java将2个ArrayList一个接一个地显示到jTextArea中,根据输入的数据多次显示   java无法使用导入的库。安卓工作室。谷歌云端点jar   spring boot Neo4j Apoc在java中获取结果摘要时的情况   转义特殊字符javajson   无法在java中使用OpenCV读取图像,涉及unicode路径   swing Document Listener java“无法实例化DocumentListener类型”   java Piglatin,难以理解如何移动“.”一串   java映射请求基于一个可观察对象中的每个元素,使用改进?   java在可扩展字符串中搜索时,如何忽略字符的大小写?   在包中分组类的java约定   python为Java应用程序创建Ubuntu指示小程序   java Camunda:如何通过processInstanceId获取所有已完成的任务