Skip to content

Application to grab the current frame from the framebuffer in linux and save it as a .bmp file, with optional lossy compression for thumbnailing

License

Notifications You must be signed in to change notification settings

SkibbleBip/fbgrab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbgrab

fbgrab is a simple command-line utility for capturing the current frame in the framebuffer and saving it as a .bmp file. It includes an option for optional lossy compression suitable for thumbnailing.

Usage

./fbgrab --input/-i <input_file> --output/-o <output_file> --resolution/-r <resolution>

Options

  • --input/-i: Specifies the input file (framebuffer device). This is an optional parameter.
  • --output/-o: Specifies the output file where the captured frame will be saved as a .bmp file. This is an optional parameter.
  • --resolution/-r: Specifies the fraction of the original captured frame. This is an optional parameter.

Example

./fbgrab -i /dev/fb0 -o output.bmp -r 4

This example captures the current frame from the framebuffer device /dev/fb0, saves it as output.bmp, and saves it as 1/4th of the original frame resolution.

Build

To build the fbgrab executable, you can use the provided Makefile:

make

Clean

To clean the build directory:

make clean

License

This project is licensed under the GNU General Public License v2.0.

Feel free to contribute and report issues.

About

Application to grab the current frame from the framebuffer in linux and save it as a .bmp file, with optional lossy compression for thumbnailing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published