Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying an image on linux without running x [closed]

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

like image 629
Andrew Avatar asked Jan 08 '13 08:01

Andrew


People also ask

How do I view a PNG file in Linux?

It supports image imports, image organization, basic editing such as rotation, cropping, enhancing, and more. To open a PNG image with Shotwell, search for the tool in the gnome-search tool and launch. This will import all images in the Pictures directory. To open a specific tool, double-click the image from the list.

Can you display an image in terminal?

Terminal Image ViewerTerminal Image Viewer is a fun tool that displays images inside modern terminals. While it's not available in most package repositories, we can compile and install it ourselves using g++ and make.

How do I view images through SSH?

Connect to your server using X11 forwarding: ssh -Y user@server or ssh -X user@server. Go to the directory on your server with the pictures. Open the picture you want with: xdg-open picture_name . This will open up a window on your mac with the image.


2 Answers

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

like image 115
DevSolar Avatar answered Oct 09 '22 10:10

DevSolar


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.

like image 36
Richard Avatar answered Oct 09 '22 10:10

Richard