SHAvatar is a Self-Hosted Avatar proposal.
The idea is everyone should be able to host himself his avatar image, provided to use its own domain name.
The domain name of an email address can be use as an entry point to display the avatar matching email.
Image request follow Gravatar's rules (except for the domain name obsiouly).
If the e-mail address is nickname@domain.tld
the image request will be https://domain.tld/avatar/aa745c786b697726fbbc0a3679d8de8e
.
Please see the composer.json file.
- Copy the
avatar
directory in the web-root of the virtual host your HTTP server - Add those requirements in your
composer.json
:
"silex/silex": "^2.0",
"intervention/image": "^2.5"
And run composer update
.
- The image file must be named
{HASH}-80x80.jpg
(where {HASH} is a MD5 hash of your email) - Put the file in
avatar/images
directory
- Start local Web server:
php -S localhost:8000
- Request
http://localhost:8000/avatar/{HASH}
in your web browser
arnaud(at)ligny(dot)org ➡️ http://ligny.org/avatar/9ea5082df57281310fa93db64c70f88b
SHAvatar is a free software distributed under the terms of the MIT license.
Copyright (c) Arnaud Ligny