Projects / fbgrab

fbgrab

FBGrab is a framebuffer screenshot program, capturing the Linux framebuffer and converting it to a PNG image.

Licenses
Operating Systems
Implementation

Recent releases

  •  30 Sep 2013 20:19

    Release Notes: It is now possible to write a framebuffer snapshot directly to stdout and also to set the png compression level with the new command line switch -z. Several improvements of the Makefile has also been made in order to simplify things for package maintainers and cross-compilation.

    •  23 May 2013 21:03

      Release Notes: Handling of framebuffers with non-standard ordering of the colors was improved. Framebuffers with larger line lengths than are actually used are now handled. Screenshots where the picture is not at the top of the framebuffer are now supported, i.e. applications using hardware flips. A -v option was addef to provide some verbosity on what fbgrab is doing. zlib.h is now included to adjust to changes in libpng.

      •  04 Feb 2004 05:06

        No changes have been submitted for this release.

        Recent comments

        18 Mar 2014 20:26 ddhill

        I stumbled onto an error in the code that took me a bit to puzzle out. The variables Red, Green, Blue, Alpha are used in several places as PNG character order offsets, but those values are being hammered in the info section for no apparent reason. Also added an include to get rid of a bunch of unneeded warnings. Diff below, though it would make more sense to just remove the offending lines.

        ~/sb/fbgrab$ diff -u fbgrab.c.orig fbgrab.c
        --- fbgrab.c.orig 2014-03-18 14:49:06.090675302 -0400
        +++ fbgrab.c 2014-03-18 16:22:20.390415936 -0400
        @@ -19,6 +19,7 @@
        #include <unistd.h>
        #include <fcntl.h>
        #include <sys/ioctl.h>
        +#include <string.h>

        #include <getopt.h>
        #include <sys/vt.h> /* to handle vt changing */
        @@ -169,10 +170,10 @@
        fprintf(stderr, "alpha: offset: %i, length: %i, msb_right: %i\n", fb_varinfo_p->transp.offset, fb_varinfo_p->transp.length, fb_varinfo_p->transp.msb_right);
        fprintf(stderr, "pixel format: %s\n", fb_varinfo_p->nonstd == 0 ? "standard" : "non-standard");
        }
        - Blue = fb_varinfo_p->blue.offset >> 3;
        - Green = fb_varinfo_p->green.offset >> 3;
        - Red = fb_varinfo_p->red.offset >> 3;
        - Alpha = fb_varinfo_p->transp.offset >> 3;
        + //Blue = fb_varinfo_p->blue.offset >> 3;
        + //Green = fb_varinfo_p->green.offset >> 3;
        + //Red = fb_varinfo_p->red.offset >> 3;
        + //Alpha = fb_varinfo_p->transp.offset >> 3;

        (void) close(fd);
        }

        Screenshot

        Project Spotlight

        OpenStack4j

        A Fluent OpenStack client API for Java.

        Screenshot

        Project Spotlight

        TurnKey TWiki Appliance

        A TWiki appliance that is easy to use and lightweight.