Re: new rotate wish

Carl Wilhelm Soderstrom <[email protected]> Tue, 6 Jan 2004 16:11:15 -0600
Newsgroups gmane.comp.gnome.apps.gqview.user
Message-ID <[email protected]>
On 01/06 11:07 , Harijs Buss wrote:
> Exactly. You would be surprised how many people (including myself) do say this 
> indeed and then re-boot in Windows.  Typical situation is e.g. when you have 
> big set of fresh digital pictures at the end of busy travelling day, and need 
> to prepare something show-able during some 20 minutes or so. 

here's what I'd do:
- create a directory called 'rotate'
- go down your list of images, and move the ones which need to be rotated, to
  the 'rotate' directory (cut away crap images, etc). (and don't think in
  terms of drag-n-drop; think "<ctrl-m>;<enter>")
- open a command line, cd to the 'rotate' directory
- use the 'display' tool from ImageMagick to rotate all the images whichever
  way you need, using a single batch command. (also resize them, or do
  whatever you like at the same time).
- mv all the images out of that dir back to the directory with all the other
  images
- use any number of simple scripts to generate an HTML'ized index of all the
  images in your directory. (I can give you several different ways to do
  this; using vi, awk, lynx, sh, or perl.)
- display the images with your web browser.

Once you've done this a couple of times, it'll take you all of 5-10 minutes;
most constrained by the time spent sorting out the images you want to keep
and the ones you need to rotate.

mind you, I realize the value of just being able to click on a menu item
after seeing 'oh, this needs to have <whatever> done to it'; for small lists
of things (or things which aren't easy to pick out in batches), it might be
more efficient that way. I just want to point out a more generalized
solution, that's far more flexible.
(for instance; substitute the 'display' stage with "for i in `ls -1
*_copy_2.jpg`; do j=(`echo $i|sed s/_copy_2//`); mv $i $j; done" if you want
to rename all the files which have '_copy_2' in the name to the identical
name without '_copy_2'.)

Carl Soderstrom.
-- 
Systems Administrator
Real-Time Enterprises
www.real-time.com


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click