Open an image from a terminal

Solved
H2KMina Posted messages 31 Registration date   Status Membre Last intervention   -  
H2KMina Posted messages 31 Registration date   Status Membre Last intervention   -
Hello,

I would like to know if there is a command to open a jpg or png image from a terminal, please.
(On Linux, of course)
Thank you

3 réponses

zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 500
 
Hello,

The list would be long if we had to enumerate them all. Here are a few:
  • eog
  • display (requires imagemagick)
  • feh
  • fbi (TTY)
  • xdg-open

etc.

--
_______________________________ ☯ Zen my nuggets ☮ ______________________________
Do something for the environment, close your windows and adopt a penguin… 🐧
9
luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention   1 176
 
That's a bit why I asked him for his distribution --'
And since it's a custom distribution, it would be ideal for him to ask directly those who set it up (Bocal d'Epitech)
See here for more information

Otherwise, were you planning to bring something...?
0
zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 500 > luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention  
 
Why is it forbidden to respond?
0
luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention   1 176
 
Nope, it's just that opening a reply thread to provide a comment that doesn't allow for a possible resolution of the issue does not actually... solve the problem.
0
zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 500 > luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention  
 
He cannot install anything, but there is nothing to say that one of the mentioned programs is not already installed…

Then, his request is not clear ;-\

There is a difference between opening an image FROM a terminal (graphically) and opening an image IN a terminal.
0
luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention   1 176
 
We agree.

To the question "What software do you use to view your images?", the answer "in my file managers it says open with image viewer" is not necessarily the most appropriate.
However, drowning it in a lot of possible answers (because yes, we're on Linux, so there are quite a few software options) is not, in my opinion, the best approach.
After all, teaching (or helping... the gap between the two terms is thin)... there's no miracle recipe.
I opted for "ask your technical support what the image viewer is", I think that's the best advice I can give him before providing him with the correct command line.
0
luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention   1 176
 
Hello!

It depends on your "image viewer" ;-) What software do you use to view your images? From there, I'll tell you which command line to use to open the image with that software.

Have a great day!

Luc

--
The 3 biggest lies of a developer? The documentation will be done later... The program has no bugs... The specs are finished...
A people sacrificing their freedom for more security loses both.
0
H2KMina Posted messages 31 Registration date   Status Membre Last intervention  
 
Eh bien, quand je vais chercher dans mes gestionnaires de dossiers, il est écrit "ouvrir avec visionneur d'image" !
0
luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention   1 176
 
Which distribution are you using then?
0
H2KMina Posted messages 31 Registration date   Status Membre Last intervention   > luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention  
 
a customized Linux distribution (Blinux) made in Epitech Paris
0
luckydu43 Posted messages 4525 Registration date   Status Membre Last intervention   1 176
 
Well, since I've never been to Epitech (except for Prologin), I can't really tell you what it is :-D
Well... I dug a little into the subject, and it seems that OpenSuse is hiding behind Blinux. The default image viewer in OpenSuse is Gwenview

Try typing
man gwenview
in a terminal ;-)

EDIT: oh wait actually I don't know (I kind of mentioned it at the beginning of this post but I'll repeat)
Apparently, Epitech likes to change the provided software stack.
So... if it's not gwenview... ask your technical support what the image viewer is ;-) You'll just need to do a
man myFavoriteViewerThatILoveAndAdore
to see the options available in the command line ;-)
0
H2KMina Posted messages 31 Registration date   Status Membre Last intervention  
 
ok thank you all it's working a good old display (image_i_want)

--
...
-1