Fbv: framebuffer Image Viewer. You can view images in JPG, PNG, GIF, BMP, and other formats on the console. You can use fbterm To Set background images on the console, it can also be used on embedded devices for compilation. However, the Ubuntu source code is not provided. You need to download the fbv source code compilation and rely on the following three libraries (the source code contains the corresponding header file, so you can not simply copy these libraries from a computer with these libraries, but also have header files.) You can download only one library and only view images in a specific format, you need to modify makefile and Main. c.
Download and install libjpeg:
Wget http://www.ijg.org/files/jpegsrc.v8d.tar.gz
The following requires the root permission:
Tar-zxvf restart src.v8d.tar.gz-C/usr/local/src
CD/usr/local/src/jpeg-8d
./Configure & make install
Download and install libpng:
From http://www.libmng.com/pub/libpng.html
Note: LibPNG needs zlib, UBUNTU source is zlib1g, zlib1g-dev
Libungif can be installed from source or http://sourceforge.net/projects/giflib/files/
The system supports BMP by default. Modify the currently unsupported content in Main. C and makefile based on the error prompt during compilation.
The struct In the PNG Library has changed. If a higher version is used, you need to modify part of the PNG. C code in fbv1.0. Otherwise, an error occurs during make.
#if (PNG_LIBPNG_VER < 10500) if (setjmp(png_ptr->jmpbuf)) { png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); if(rp) free(rp); fclose(fh); return(FH_ERROR_FORMAT); }#else if (setjmp(png_ptr)) { png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); if(rp) free(rp); fclose(fh); return(FH_ERROR_FORMAT); }#endif
After successful installation, you can view jpg and BMP, such as fbv xxx.jpg (full screen) and press Q to exit.
When you try to open a PNG image on the console, you may find that libpng16.so. 16 is not found, but you can use whereis or grep to find it and run sudo ldconfig.
Method for packaging as Deb: checkinstall-D (maybe you need to download checkinstall first)
Below is attached with a 32-bit Deb package (remove the suffix zip) (can see png, JPG, BMP): fbv_1.0b-1_i386.deb.zip
If you are interested, you can also use fbgrab (A fbcat tool): fbgrab screenshot.png
In addition, you can use CAT/dev/fb0> screen. Raw to capture the raw data in the console/dev/tty. fbgrab actually converts it to PNG format. To view the captured image, you can Cat Screen. Raw>/dev/tty.
Fbv (framebuffer viewer) Compilation Guide