سؤال

does anyone know of a way to just display an image via command line or C? I can run video fine without running X with omxplayer but i would like to also display an image without having to load the desktop, either via C or something i can run from the shell

هل كانت مفيدة؟

المحلول 2

fbi, a frame-buffer image viewer, might do the trick for you.

Otherwise, you could try JPEG to ASCII for a rough viewing of JPEG images.

نصائح أخرى

SVGAlib might be what you're looking for - a C graphics library that works without X11.

You can take a look to SDL that works pretty well on many platforms.

And if you want to make some funnier things, try PyGame, it is very easy to display/animate bitmap on screen with it (and it is in python which is well supported on RaspberryPi).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top