从终端方便地显示图像(PNM、PNG、JPEG等)。

image-view的Python项目详细描述


Build status

image-view使用pygame显示图像(pnm、png、jpeg等)。

主要动机是支持在OSX上查看PNM图像 图片类型,预览效果很好对于PNM图像,Xee对于 大多数情况下,但是当显示 命令行。如果有一系列从 相机(captured-00*.pgm),您希望显示其中的一个子集

安装

首先以某种方式安装pygame依赖项一种选择是使用这个 fork,它避免了操作系统x上的x11:

$ pip install --upgrade git+https://github.com/myint/pygame

然后安装实际程序:

$ pip install --upgrade image-view

用法

典型用法:

$ image-view captured-070*.pgm
  1. 使用左右箭头键在图像中导航。
  2. 使用+/-键缩放图像。按0重置

选项:

usage: image-view [-h] [--colorize] [--little-endian] [--version]
                  files [files ...]

positional arguments:
  files            paths to images

optional arguments:
  -h, --help       show this help message and exit
  --colorize       color 16-bit PGM images with a rainbow gradient
  --little-endian  interpret 16-bit PGM images as little endian; this is the
                   opposite of Netpbm (and ImageMagick)
  --version        show program's version number and exit

示例屏幕截图

screenshot

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

推荐PyPI第三方库


热门话题
java Clojure关键字在内存中的大小是多少?   Java中有固定长度的通用数组对象吗?   PostgreSQL:通过Java更新我的用户表   错误:使用java解析xml   java Json显示列表中对象的名称   java比较JodaTime时区   与JAVA中的API和包的区别?   java的int值在for循环中不改变   谷歌应用引擎中的java RSA   迁移到spring 5后出现java非法字符错误   java Websphere管理控制台不工作   JavaGSON如何始终在json中包含毫秒?   带有空格和双引号的windows Java ProcessBuilder命令参数失败   java错误:重复的zip条目[43.jar:org/apache/http/annotation/NotThreadSafe.class]