Open an image from a terminal

Solved
H2KMina Posted messages 31 Registration date   Status Member Last intervention   -  
H2KMina Posted messages 31 Registration date   Status Member 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 answers

  1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
     
    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
    1. luckydu43 Posted messages 4497 Registration date   Status Member Last intervention   1 177
       
      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
      1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > luckydu43 Posted messages 4497 Registration date   Status Member Last intervention  
         
        Why is it forbidden to respond?
        0
    2. luckydu43 Posted messages 4497 Registration date   Status Member Last intervention   1 177
       
      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
      1. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > luckydu43 Posted messages 4497 Registration date   Status Member 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
    3. luckydu43 Posted messages 4497 Registration date   Status Member Last intervention   1 177
       
      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
  2. luckydu43 Posted messages 4497 Registration date   Status Member Last intervention   1 177
     
    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
    1. H2KMina Posted messages 31 Registration date   Status Member Last intervention  
       
      Eh bien, quand je vais chercher dans mes gestionnaires de dossiers, il est écrit "ouvrir avec visionneur d'image" !
      0
    2. luckydu43 Posted messages 4497 Registration date   Status Member Last intervention   1 177
       
      Which distribution are you using then?
      0
      1. H2KMina Posted messages 31 Registration date   Status Member Last intervention   > luckydu43 Posted messages 4497 Registration date   Status Member Last intervention  
         
        a customized Linux distribution (Blinux) made in Epitech Paris
        0
    3. luckydu43 Posted messages 4497 Registration date   Status Member Last intervention   1 177
       
      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
  3. H2KMina Posted messages 31 Registration date   Status Member Last intervention  
     
    ok thank you all it's working a good old display (image_i_want)

    --
    ...
    -1