灵活的iterm2终端图像查看器
iv的Python项目详细描述
iv:iterm2的终端图像查看器
iv
是使用iterm2的image display capability在终端中查看图像的实用程序。它对于处理远程服务器上的图像非常有用,例如处理大型图像处理任务。
显示单个图像时,iv
将调整大小以加快速度
通过ssh连接传输:
当显示多个图像时,iv
将生成“联系人表”
包含文件名的图像。这些图像在
平行:
安装
iv
可以使用pip安装:
$ pip3 install iv
如果iv
在您的系统上找不到任何合适的truetype字体,它将使用
难看的默认位图字体。要在Linux上获得更好的字体,请安装
打开的sans或msttcorefonts集合(fonts-open-sans
)或
ttf-mscorefonts-installer
类debian发行版上的包)。
用法
Usage: iv [OPTIONS] FILENAME...
Display images within an iTerm2 terminal.
iv will resize images to reduce the time taken to display them over SSH
connections, and it will combine multiple images into a single image, with
filenames.
Usage:
iv ./file.jpg # Display a single file, resizing as appropriate.
iv *.jpg # Display a number of files combined into a single image, with filenames.
The IV_SIZE environment variable can be used to set the output image size
instead of the -s/--size option.
Options:
--version Show the version and exit.
-s, --size INTEGER Maximum output image width in pixels.
--help Show this message and exit.
限制
iterm2可能拒绝显示非常大的图像,并用 复古“破碎图像”图标。您总是可以右键单击并“打开图像” 使用外部查看器查看图像。