LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Command line image viewing for bash script? (https://www.linuxquestions.org/questions/programming-9/command-line-image-viewing-for-bash-script-661887/)

Romanus81 08-10-2008 10:02 PM

Command line image viewing for bash script?
 
I like to take pictures and upload them to facebook. On a recent trip though, I took over 450 photos and would like to make a script that would make moving them to a temporary file easier. I know this will probably involve a loop that will show me all the pictures in a directory one-by-one, and I suppose it should allow some sort of input, such as pressing one key to make a link to that photo in a temporary folder for easy uploading, and another to skip to the next photo.
What should I use for the image viewing part?

trailnut 08-10-2008 10:15 PM

I'm no expert, but I often invoke eog from the command line. I'm running gnome as my window manager and eog stands for, "Eye of Gnome," a picture viewer. I'll cd into a directory with pictures and issue the command:

Code:

eog somepicture.jpg
Maybe a script expert could help you write eog into your program.

raconteur 08-10-2008 11:16 PM

There are many good framebuffer image viewers if you want to do this from the console. fbi is a good choice, but there are others as well.

If you want to do it from X, then feh is one that I use for slide shows and such.

There are many options, a simple web search should provide many choices.

jschiwal 08-10-2008 11:39 PM

On many picture viewers, you can use the directory as an argument to display all of the files. Don't forget about google's picassa.


All times are GMT -5. The time now is 04:09 AM.