打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
How To Display Images On Raspbian Command Line | Raspberry Pi Spy
If you are using your Pi to capture images using the camera it can be useful to display those images without launching a desktop environment. One of the ways of doing this is to use a utility called “fim”.
fim is based on an image viewer called “fbi” and stands for “Fbi IMproved”.
Note : It uses the system’s framebuffer to display images directly from the command line. For this reason it is best used when your Pi is directly connected to a monitor and keyboard.
Install fim
To install fim use the following commands :
sudo apt-get updatesudo apt-get -y install fimUse fim
To display a single image with the “auto-zoom” option use :
fim -a example.jpg
Once displayed you can use various keyboard shortcuts to manipulate the image such as the r/R key to rotate :
To display all the images in the current directory  use the following command :
fim -a *.jpg
The PageUp/PageDown keys can be used to cycle through the images selected by the “*.jpg” filter.
ASCII Art
If you use the “-t” option you can render the image in ASCII characters.
To display the image as ASCII art you can use :
fim -a -t example.jpg
Do or do not. There is no try.
OK so the last one is slightly less useful but might provide some light relief from the command line!
Keyboard Controls
While the image is displayed you can use the following keys :
PageUp/Down  Prev/Next image+/-  Zoom in/outa Autoscalew Fit to widthh Fit to heightj/k Pan down/upf/m flip/mirrorR/r Rotate 10 degrees CW/CCWESC/q Quit
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
10行Python代码能做出哪些有趣的事情?
30 行代码带你用 Python 在命令行查看图片
Python将图片转换为ASCII字符画
image011.jpg (532×393)
.banana-pi  Image Files
VFP中的图像框(image)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服