in reply to Re^4: Global program flow
in thread Global program flow

Dear A. Monk,

Reading your reply I must admit, having a script that manages the creation and cleanup, etc. rather then one that creates pages on the fly seems a good idea. I especially like the portability (tar .. there you gow) thingy. I'm probably so used to a linux workstation that there's always an Apache server around (there no place like 127.0.0.1 .. :-))

Since were on the subject. What I recently added to my script was the option to show a description per picture, and if none state: 'no title - name DSC000XX.jpg'. You gave me a lot of new ideas, Thanx for that!

What I'm looking for is an easy manageble solution. Something like doing an scp or ftp upload of the pictures (since the're alway on my external server), and being able to create the (static) pages and the preview and thumbs via a dynamicly generated GUI (sorry couldn't help myself .. ;-)).

Do you manage the things you mentioned from a CGI based HTML gui or simply from the CLI.

Thanx again,

Regards,

Gerard.
~
~
:wq!

Replies are listed 'Best First'.
Re^6: Global program flow
by Anonymous Monk on Feb 16, 2005 at 10:48 UTC
    CLI, with an optional configuration file. In the configuration file, I can state in which order I want to pictures to be displayed (by default, it takes the order the pictures are in the directory), whether pictures need to be rotated (my camera doesn't track this), any descriptions I'd like to be shown, and whatever else I'd like to record. Everything being optional. I don't need to an HTTP server to create (or configure) my albums, and I don't even need one to view my albums. firefox index.html works fine. All I need to create an album is vi (for the config file), convert (to scale/rotate/crop images) and jhead (to get the exif information). Oh, and Perl. And since I sometimes work on an album on my laptop, I've a 'sync' option that uses rsync to sync from my laptop to my server. A server that doesn't have CGI enabled.
      Dear Mr. A,

      Sorry about the late reply but I've been (way to) busy. There was one pice of javascript oneliner I thought you might like (See below). It's possibly a bit off-topic but it's very nice.

      Create a new bookmark. Enter the javascript line below in the URL and save it. Surf to a browseable directory with normal photos in them en click this bookmark. It wil then automatically create thumbs.

      javascript:var%20sHTML='%3Chtml%3E%3Chead%3E%3Ctitle%3Egallery%3C/titl +e%3E%3C/head%3E%3Cbody%3E';links=document.getElementsByTagName(%22a%2 +2);for(x=0;x%3Clinks.length;x++){a=links[x].href;%20if%20(a.match(/jp +eg|jpg/i)){sHTML+='%3Ca%20target=%22_new%22%20href=%22'+a+'%22%3E%3Ci +mg%20style=%22margin:%2010px%2010px%2010px%2010px;border:%201px%20sol +id%20%23ccc;padding:%206px%22%20height=%22150%22%20src=%22'+a+'%22%3E +%3C/a%3E';}};document.body.innerHTML=sHTML+'%3C/body%3E%3C/html%3E';d +ocument.close();

      That's all

      Kind regards,

      Gerard.
      ~
      ~
      :wq!