ShakaBrah
ShakaBrah

Reputation: 11

Open image using terminal in linux

I am trying to open an image with the terminal and set the image viewer to fullscreen and diaporama mode.

I am currently using xdg-open which allow me to open the image but the window is not in fullscreen mode. I tried force the fullscreen mode using F11 and F5 for diaporama mode but I am working on a computer that doesn't allow the installation of external tools.

Is there a way to force the fullscreen and diaporama mode without external tools ?

Thanks.

Upvotes: 1

Views: 13646

Answers (4)

Imranmadbar
Imranmadbar

Reputation: 5480

Easy way!

$gio open simpleImageFile.png

Upvotes: 2

Pepe Alvarez
Pepe Alvarez

Reputation: 1634

In Ubuntu you can use the image viewer that comes by default with it, using the command:

$ eog my_pic.jpg

And that's it, if you do not have that image viewer then you can just download whatever you like and open it from the terminal in the same way. To exit you can close the opened window or by typing ctrl + c in your terminal to close the process.

Upvotes: 1

yuhow5566
yuhow5566

Reputation: 555

You can try to use gnome-open to open your file. It also has full screen mode(F11) and slideshow mode.

'eog'(Eye of GNOME) is also a good option.

Upvotes: 1

mestia
mestia

Reputation: 469

What does it mean external tools ? If you can select a different image viewer, which you can setup to start full screen, then xdg-open will use it. Alternatively you can try something like feh instead of xdg-open, feh reads the fehrc file where you can define the starting options.

Upvotes: 1

Related Questions