LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-10-2008, 10:02 PM   #1
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
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?
 
Old 08-10-2008, 10:15 PM   #2
trailnut
LQ Newbie
 
Registered: Oct 2004
Location: Vestal, NY
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
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.
 
Old 08-10-2008, 11:16 PM   #3
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 43
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.
 
Old 08-10-2008, 11:39 PM   #4
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
escape string in bash script so it can be used in command line BuckRogers01 Linux - Software 15 08-12-2010 09:38 AM
works on command line but not in bash script tara Linux - General 7 02-09-2009 03:57 AM
bash script 'for each command line argument' true_atlantis Linux - Newbie 3 01-28-2009 01:51 PM
Bash Script, no new line for echo command jorisb Linux - General 5 11-05-2005 12:08 AM
viewing pictures in command line??? mlu Linux - Software 4 05-25-2005 10:48 PM


All times are GMT -5. The time now is 01:18 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration