'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.
Solution 1:[1]
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.
Solution 2:[2]
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.
Solution 3:[3]
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.
Solution 4:[4]
Easy way!
$gio open simpleImageFile.png
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | mestia |
| Solution 2 | |
| Solution 3 | José Alvarez |
| Solution 4 | Imranmadbar |
