Image gallery and rating server.
tornado-gallery serves a specified directory structure containing images / galleries to modern web browsers.
- Images are resized or served from cache on the fly to minimize bandwidth usage.
- Image ratings are displayed and stored back in image xmp section.
- Asynchronous request handling, resizing of images in multiple processes.
- Preloading of next and previous image in browser.
The backend is based on tornado web framwork from facebook/friendfeed. Pillow is used for image editing while python-xmp-toolkit is employed to read/write metadata. Polymer is used for the frontend.
- Make sure that exempi library used by python-xmp-toolkit is installed (e.g. via brew or apt). Further bower (and nodejs) is requiered to fetch the frontend.
- Create a python virtualenv and install (dev-)requirements.txt
- Create wrapper script via
python setup.py develop
or start app.py in tgallery package. bower install
fetches frontend dependencies- Navigate to http://localhost:1234/
... or use the Dockerfile to create a docker image.
Pull image via docker pull martinhoefling/tornado-gallery
, then start container
docker run -ti -v /home/martin/Pictures:/gallery martinhoefling/tornado-gallery
- Image Cache Cleanup
- Authentication