Raspberry Piで画像を表示する


sudo apt-get install fbi

pi@raspberrypi ~ $ sudo apt-get install fbi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 59.7 kB of archives.
After this operation, 157 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main fbi armhf 2.07-10 [59.7 kB]
Fetched 59.7 kB in 1s (30.0 kB/s)
Selecting previously unselected package fbi.
(Reading database ... 74939 files and directories currently installed.)
Unpacking fbi (from .../archives/fbi_2.07-10_armhf.deb) ...
Processing triggers for mime-support ...
Processing triggers for man-db ...
Setting up fbi (2.07-10) ...
pi@raspberrypi ~ $


sudo fbi haro.jpg -a


sudo fbi -nocomments -noverbose -T 1 -d /dev/fb1 haro.jpg

pi@raspberrypi ~ $ fbi -h

This program displays images using the Linux framebuffer device.
Supported formats: PhotoCD, jpeg, ppm, gif, tiff, xwd, bmp, png.
It tries to use ImageMagick's convert for unknown file formats.

usage: fbi [ options ] file1 file2 ... fileN

  -h  -help               print this help text
   -V  -version            print fbi version number
       -store              write cmd line args to config file
   -l  -list <arg>         read image filelist from file <arg>
   -P  -text               switch into text reading mode
   -a  -autozoom           automagically pick useful zoom factor
       -(no)autoup           like the above, but upscale only
       -(no)autodown         like the above, but downscale only
       -(no)fitwidth         use width only for autoscaling
   -v  -(no)verbose        show filenames all the time
   -u  -(no)random         show files in a random order
   -1  -(no)once           don't loop (for use with -t)
       -(no)comments       display image comments
   -e  -(no)edit           enable editing commands (see man page)
       -(no)backup           create backup files when editing
       -(no)preserve         preserve timestamps when editing
       -(no)readahead      read ahead images into cache
       -cachemem <arg>     image cache size in megabytes
       -blend <arg>        image blend time in miliseconds
   -T  -vt <arg>           start on virtual console <arg>
   -s  -scroll <arg>       scroll image by <arg> pixels
   -t  -timeout <arg>      load next image after <arg> sec without user input
   -r  -resolution <arg>   pick PhotoCD resolution (1..5)
   -g  -gamma <arg>        set display gamma (doesn't work on all hardware)
   -f  -font <arg>         use font <arg> (anything fontconfig accepts)
   -d  -device <arg>       use framebuffer device <arg>
   -m  -mode <arg>         use video mode <arg> (from /etc/fb.modes)

Large images can be scrolled using the cursor keys. Zoom in/out
works with '+' and '-'. Use ESC or 'q' to quit. Space and PgDn
show the next, PgUp shows the previous image. Jumping to a image
works with <number>g. Return acts like Space but additionally
prints the filename of the currently displayed image to stdout.

pi@raspberrypi ~ $

  • 最終更新:2014-11-13 23:29:28