Re: Scripts for Galleries

by Gerald Oskoboiny <gerald@impressive.net>

 Date:  Fri, 22 Nov 2002 18:02:52 -0500
 To:  Joseph Reagle <reagle@mit.edu>
 Cc:  fogo@impressive.net
 References:  reagle
 Replies:  gerald
On Fri, Nov 22, 2002 at 01:54:43PM -0500, Joseph Reagle wrote:
> 
> Since everyone seems to have their own scripts for generating galleries, 
> here's mine! <smile/>  icon call igal. Results look like:
> 	http://goatee.net/photo/web/2002/10/

I keep putting off sending details on my stuff to fogo because I
was hoping to make it more usable first.

But here is a quick summary of what I currently do to publish mine.
(sample: http://impressive.net/people/gerald/2002/italy/photos.html )

    1. gphoto2 -P
    2. epinfo -rf $W/%Y/%m/%d/%H-%M-%S.jpg *.JPG
    3. rename-vids *.AVI
    4. cd $M
    5. make_variants ??/$L &
       (this takes a looong time)
    6. qiv ??/$L
       (do a quick pass through, to delete or resize lame/redundant pics)
    7. captivate --index foo.html */*
       (add titles/descriptions to each photo; generates HTML when done)
    8. edit foo.html to add headings/titles/intro text
    9. cvs add and commit everything

This is too many steps... I'd like to move at least steps 2 through 6
into captivate.

The environment variables W, M, and L are set in my .bashrc:

    W=$HOME/www/people/gerald; export W
    M=$W/`date +%Y/%m`; export M
    L="??-??-??.jpg"; export L

so I can always use $W to refer to my web site document root, $M
to refer to the current monthly dated dir on my site, and $L to
refer to the original versions of my photos; very, very handy.

rename-vids, make_variants, captivate etc are linked from:
http://impressive.net/software/photo/

items near the top of my todo list include:

  - make it usable (make "captivate *" do the right thing for new users)
  - add next/prev/up links on each photo page
  - switch to CSS for style stuff on photo pages
  - add access control, foaf depiction, and quality ratings
  - make a search engine for my photos
  - reduce the number of steps needed to publish (above)

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

HURL: fogo mailing list archives, maintained by Gerald Oskoboiny