Lavatar is an LDAP-backend avatar server with Gravatar like URL support.
Lavatar fetches all email addresses from an LDAP server with a given search filter and stores them with their md5hash on Redis. Per defualt Lavatar also use Redis to cache the avatar images.
For now lavatar only support image requests.
You can use the docker container image and the docker-compose example to test this app:
wget https://raw.githubusercontent.com/rroemhild/lavatar/master/docker-compose.yml
docker-compose upand test in browser: http://localhost:5000/avatar/982391f62e589420d9fdb56a62c5e16c
git clone https://github.com/rroemhild/lavatar.git
cd lavatar
pip install -r requirements.txt gevent
cp lavatar/default_settings.py settings.pyConfigure lavatar in settings.py and run python production.py example.
The default image size for the base request is 80x80, max size limit is 1024x1024.
http://localhost:5000/avatar/HASHSet s or size to scale the avatar image
http://localhost:5000/avatar/HASH?s=160Set d or default for the default image available in static/img.
http://localhost:5000/avatar/HASH?d=keywordSet m or method to resize Image with the specified method: 'crop', 'cover', 'contain', 'width', 'height' or 'thumbnail'. Default is thumbnail
http://localhost:5000/avatar/HASH?s=120&m=coverSet w or width to resize width and h or height to resize height.
http://localhost:5000/avatar/HASH?h=120&m=height