从终端方便地显示图像(PNM、PNG、JPEG等)。
image-view的Python项目详细描述
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
- 使用左右箭头键在图像中导航。
- 使用+/-键缩放图像。按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