在终端中渲染图像文件

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第三方库


热门话题
java Cassandra复制因子大于节点数   java J2EE JTA事务回滚不适用于OSE Glassfish 4.0(Build 89)   java spring安全预认证用户登录   org的java类文件。反应流。从RxJava编译示例时未找到Publisher?   java在使用dataFormat作为POJO通过Camel调用Web服务时无法设置SOAP标头   Javafx类的java静态实例   java如何防止一个部件在关闭时覆盖另一个部件的位置   sql server无法从我的java代码连接到数据库   java在JList(Swing)中显示带有的ArrayList   从Java中的CXF服务获取WSAddressing数据   使用资产文件夹进行java简单json解析(本地)   java LDAPException未绑定的无效凭据   JavaJSFspring部署到weblogic   JAVA中字符数组中的特定元素排列?   如果脚本位于不同的目录中,则ant不会使用exec标记运行Javashell脚本