edit-images: script to help preview/delete images

by Gerald Oskoboiny <gerald@impressive.net>

 Date:  Thu, 9 May 2002 15:13:50 -1000
 To:  fogo@impressive.net
 Replies:  reagle gerald
I wrote a cgi script last night to help me review/delete/resize
images from my digital camera.

    screen shot:
    http://impressive.net/people/gerald/2002/05/09/edit-images.png

    code:
    http://impressive.net/software/photo/source/edit-images

Lately, my strategy with my digital camera has been to take a lot
of pictures and then delete up to half of them before putting the
best-quality ones on my site. (or sometimes just shrink them down;
don't need to keep everything at 4 megapixels)

In the past, the process I have used for that was to do "xv *"
and then skip through all the images hitting ^D^D to delete the
lame/redundant ones.

But it's hard to do that while only viewing one image at a time
(have to keep going back/forth between similar images to see
which are the best ones), so I wrote a cgi script to display an
overview of image thumbnails, with radio buttons under each image
with choices like:

    * (*) leave as-is                            
    * ( ) delete     
    * ( ) resize to x1200
    * ( ) resize to x960 
    * ( ) resize to x480

For now, it doesn't actually do the operations indicated because
I didn't want to get bogged down figuring out all the security
and queueing issues (resizing takes too long to do in realtime),
so when you submit the form, it just prints a bunch of unix
commands, like:

    # cut and paste this, sucka!
    cd /var/www/people/gerald/2002/05/04
    mkdir .trash
    mv 18-52-47*.jpg .trash
    resize-images x1200 18-53-47.jpg

:)

(resize-images, make_variants etc can be found here:
http://impressive.net/software/photo/source/ )

-- 
Gerald Oskoboiny <gerald@impressive.net>
http://impressive.net/people/gerald/

HURL: fogo mailing list archives, maintained by Gerald Oskoboiny