Re:Static Site Generators
by rmc on Thursday May 15, 2014 @05:15AM
(#7748473)
Is there any static site generators for photos? Something like "host your own flickr"? Something that uses exif tags, directory hierarchy, etc to make a static browsable list of your photos?
[ Parent
| on HN ]
Jalbum http://jalbum.net/en/software/features
It's been about 10 years since I last used it, but looks like it's still basically the same thing; reads your photos directory, creates html pages with thumbnails and links to bigger pictures based on the directory structure. Can display EXIF data next to the images if you want.
Re:Static Site Generators
by raving-richard on Thursday May 15, 2014 @05:36AM
(#7748536)
Build your own. I've written something like that. It's not static, because I don't want to have to rebuild everything just 'cause I added a new photo, or fix a type. However, you do literately just use the file system to add and manage photos. I won't link to it because I don't want to link to my real ID.
But it's pretty simple. You just have to recursively go over the folder, and get each photo. Make sure there is a thumbnail, and build your HTML.
Re:Static Site Generators
by icebraining on Thursday May 15, 2014 @05:54AM
(#7748595)
It's not static, because I don't want to have to rebuild everything just 'cause I added a new photo, or fix a type.
Some generators (e.g. gostatic) can track changes and dependencies, rebuilding just what changed.
Yeah I was gonna do that, but wanted to check if anyone else had done it before I reinvent the wheel. :)
Re:Static Site Generators
by raving-richard on Thursday May 15, 2014 @10:31AM
(#7749609)
Where's the fun in that? Re-inventing the wheel to scratch your own itch is part of the process of improving yourself as a developer.
:p
There aren't many tools like that.
Personally I like and use `lazygal`: http://sousmonlit.zincube.net/~niol/playa/oss/projects/lazyg... Source: https://bitbucket.org/niol/lazygal
It's live and maintained. I also contributed some code fixes and theme to it.
I can highly recommend Photofloat by Jason Donenfeld:
I've built a Flickr plugin https://pypi.python.org/pypi/pelican-flickr for Pelican. You can embed your photosets alongside your posts & pages...
If you are familiar with Jekyll, I have made a plugin for Jekyll, for easy album generation. You just need to put your photos in a folder, and the web page can be generated. But you need to customise the theme yourself.
Could you post a link to your plugin?
Re:Static Site Generators
by tenfingers on Thursday May 15, 2014 @10:31AM
(#7749607)
I've been quite happy with https://pypi.python.org/pypi/curator
You may give Sigal a try: https://github.com/saimn/sigal/