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

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.

Replies are listed 'Best First'.
Re^7: Global program flow
by Mr. Mental (Initiate) on Feb 23, 2005 at 19:10 UTC
    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!