Giter Club home page Giter Club logo

fbimg's Introduction

fbimg: display images in the Linux Framebuffer

Display images in tty using the Linux Framebuffer!

Original code found in Qt Documentation, a little bit modified by Hugo Rodde.

The stb_image library is part of the stb single-file public-domain libraries collection.

Supports every image format supported by stb_image.h (jpeg, png, bmp, hdr, psd, tga, gif, pic, psd, pgm, ppm).

Only the first image of animated gifs is displayed.

Compiling

GNU/Linux

Simply use

gcc -o fbimg fbimg.c -lm

Other OSes using the Linux kernel

I assume that if you use such OS (and want to compile this program) you know how to compile C code.

Other OSes

Sadly, the Framebuffer is a linux-only feature.

Usage

./fbimg path/to/img.png

Important

You need either to run it as root, either to add yourself in the video group!

Roadmap

  • Use stbimg instead of libpng to support more image formats
  • Allow the user to draw at any position on screen via CLI arguments
  • Allow the user to crop the image via CLI arguments
  • Add an option to rezise the image if it is too big for the screen (using this for example)
  • Add -v (--verbose) that print the commented stuff
  • Add -h (--help)
  • Support videos
    • Get videos frame by frame and display each frame
    • Arrow keys to skip 5 seconds

fbimg's People

Contributors

jd-develop avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.