How to generate web picture gallery offline? (no php on server)

9

6

I've just attended a huge family gathering, and now an hour after getting home people are texting asking for the photos. The deal is that the images are like ~5mb a piece, so e-mailing people isn't an option.

I have access to a few web servers with plenty of space, but no php or any other server side scripting available. That's why I'm on the hunt for software(preferably opensource) that can generate the album offline, and than just share it for the world to see on my server. Of course I could do this manually, but there are to many images.

Algific

Posted 2010-09-18T18:10:45.580

Reputation: 1 143

Answers

8

What about using Picasa and creating a web album (1GB limit)?


Anyway I suggest you to batch resize them (just for show'em), 5MB are definitely too much for a screen slideshow.

An excellent tool for do that is (IMO) ImageMagick you can find plenty of howtos around, but here's a sample:

i=1
for f in *.jpg ; do
  n=`printf '%08d' $i`
  convert $f -thumbnail 1000x1000 out/p$n.jpg
  convert $f -thumbnail 150x150^ -gravity center -extent 150x150 out/_p$n.jpg
  i=$[i+1]
done

It creates both big pictures (max 1000x1000) and thumbnails (150x150) in the directory ./out/. All that you have to do now is create an index.html file:

cd out/
for f in p* ; do
  echo "<a href='$f'><img src='_$f'></a>"
done > index.html

Here we go, just move the content of the ./out/ directory to somewhere in your server.

Note: It isn't the best solution to your problem, it's just a quick draft, but I think it's useful knowing such tools.

cYrus

Posted 2010-09-18T18:10:45.580

Reputation: 18 102

15

You can use one of these (all open source):

Some of these are mentioned in this comparison.

Janus Troelsen

Posted 2010-09-18T18:10:45.580

Reputation: 1 958

2llgal is exactly what I was looking for! you can even >> sudo apt-get install llgal – Ahi Tuna – 2014-06-22T01:10:01.373

I was having a lot of issues trying to istall Sigal on Ubuntu 12.10. On the other hand llgal worked great. – Sridhar Sarnobat – 2015-08-14T19:17:36.380

1

Finally found one properly maintained and with a following (Python-based): https://github.com/saimn/sigal

– lkraav – 2013-06-29T12:30:11.780

3

You can also use Picasa to generate static html files for display on the web, just goto Folder->Export as html page. From there you can choose a template and resize the images should you wish to.

Phil

Posted 2010-09-18T18:10:45.580

Reputation: 599

0

what about giving a try to myphotoshare? it's a photofloat fork which uses a bit of php and permits to share content (original photofloat doesn't permit it).

Besides that it manages videos (original photofloat doesn't), permits sorting of albums and media, and has many customizations variables.

Paolo Benvenuto

Posted 2010-09-18T18:10:45.580

Reputation: 299