Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

martinhoefling/tornado-gallery

Repository files navigation

Build Status Requirements Status

tornado-gallery

Image gallery and rating server.

tornado-gallery serves a specified directory structure containing images / galleries to modern web browsers.

Current Features:

  • 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.

Technical Information

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.

Basic Installation

  • 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.

Running as docker container

Pull image via docker pull martinhoefling/tornado-gallery, then start container

docker run -ti -v /home/martin/Pictures:/gallery martinhoefling/tornado-gallery

ToDo / missing features:

  • Image Cache Cleanup
  • Authentication

About

Image gallery and rating server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published