can I display a JPG or PNG to the framebuffer (/dev/fb*)?

Posted by ndmweb on Super User See other posts from Super User or by ndmweb
Published on 2012-10-30T04:01:24Z Indexed on 2012/12/18 11:05 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

I know I can capture the framebuffer in linux using something like cp /dev/fb0 ~/myimage and re-display that by coping back to the device like so cp ~/myimage /dev/fb0. What format is the framebuffer image data in? and how would I go about displaying a pre-made image (jpg, png) to the framebuffer? Can I convert to this format using imagemagick?

p.s. Im using a raspberry pi running raspbian.



Update 11-12-2012

I ended up using pygame to display images in my application. Not sure if this uses the frame-buffer to display the images. But it meets my needs quite well.

© Super User or respective owner

Related posts about linux

Related posts about images