https://github.com/pklaus/photobrowser
PhotoBrowser lets you browse images organized in folders on your computer in your web browser. I use it for a fast and easy image selection process. It is written in Python.
https://github.com/pklaus/photobrowser
Last synced: about 1 month ago
JSON representation
PhotoBrowser lets you browse images organized in folders on your computer in your web browser. I use it for a fast and easy image selection process. It is written in Python.
- Host: GitHub
- URL: https://github.com/pklaus/photobrowser
- Owner: pklaus
- Created: 2013-04-30T13:31:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-10-30T13:38:39.000Z (over 7 years ago)
- Last Synced: 2025-03-26T13:04:18.397Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 169 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### PhotoBrowser
PhotoBrowser is a dynamic image gallery generator
written in Python. It is meant to be used for your
image selection process on your local computer.It runs a web server and serves images from a
local directory to your Browser. This allows
you to take a look at the photos in this directory
and should give you a couple of options to
select the best ones / delete bad ones and more.### Requirements
This project needs Python to run. It is being tested on Python 2.7 and Python 3.3 on Mac OS X and on Windows 2012 Server.
Python modules needed:
* CherryPy, a fast web server
* PIL (Pillow on Python 3.3), the Python Imaging Library
* Jinja2, a flexible HTML template engine##### Installation on Windows 2012 Server
1. Install Python 3.3.
2. Install [distribute](http://www.lfd.uci.edu/~gohlke/pythonlibs/#distribute) and [pip](http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip)
3. Use pip to install CherryPy: `set PATH=C:\Python33\Scripts;%PATH%` and `pip install cherrypy`
4. Install [Pillow](http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil)
5. Install [Jinja2](http://www.lfd.uci.edu/~gohlke/pythonlibs/#jinja2)
6. Use pip to install beaker: `set PATH=C:\Python33\Scripts;%PATH%` and `pip install beaker`
7. Run via `set PATH=C:\Python33;%PATH%` and `python C:\Repos\PhotoBrowser\photobrowser.py -p 2222 -s .\`#### Some ideas:
* Display if there is a related raw file.
* Let the user slide through all the images using a JS caroussel.
* Let the user delete bad JPEGs.
* Clean up image directories (delete orphaned RAW files).
* Add a search field to search for album names or a slider to restrict the dates of the albums displayed.
* Second corner (top left) showing album name and "# of # album images".
* Replace backslash in links with slash
* Could it run faster on small ARM machines?
Probably by limiting the amount of threads and reimplementing
[`class CherryPyServer(ServerAdapter)`](https://github.com/defnull/bottle/blob/master/bottle.py#L2509)
* configuration file with
* salt
* user accounts
* admin password
* Store cookies in a temporary directory, not in the project / photo directory.
See [tempfile.mktemp()](http://docs.python.org/2/library/tempfile.html#tempfile.mktemp).
* Fix view 'All Albums' when there are images directly in the picture dir (not in subdirs).
`KeyError: ''` in line 177.
* AJAX Album filter as the one in
see
and .
It should also have a date range slider (just range slider: ).
What about ?
Constructor: `$('#element').dateRangeSlider({});`
Options: `{arrows: false, }`
Theme: `/css/classic.css`
* Serve images in 2x resolution for Apple Retina devices
#### References
* [sigal](http://sigal.saimon.org) is a static image gallery generator written in Python. I could certainly learn a lot from that project.