2014年7月28日 星期一

fbi : linux framebuffer imageviewer

pi@raspberrypi ~ $ sudo fbi -d /dev/fb0 -a -T 2 raspi.png
using "Droid Sans Fallback-16", pixelsize=16.67 file=/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf
pi@raspberrypi ~ $ ps -aux |grep fbi
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
root      3991 17.0 12.4  34252 15308 ?        Ss   10:35   0:01 fbi -d /dev/fb0 -a -T 2 raspi.png
pi        3993  0.0  0.7   3932   880 pts/0    S+   10:35   0:00 grep --color=auto fbi
pi@raspberrypi ~ $ sudo kill 3991



pi@raspberrypi ~ $ fbi

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.

reference: http://manpages.ubuntu.com/manpages/lucid/man1/fbi.1.html


pi@raspberrypi ~ $ sudo fbi -d /dev/fb0 -a -T 2 -t 5 -1 *.png
--> loop once *.png to /dev/fb0 , and 5 seconds interval to next picture.

沒有留言: