Fork me on GitHub

Avatar Server Plugin

Introduction

This plugin allows you to use avatars associated to emails in a same way as the Gravatar site.

Configuration

The configuration must include:

  • the default image's url to return when there is no avatar in the database corresponding to the requested email.
  • size in which the images will be stored.

The configuration may additionally include:

  • quality between 0.0 (lowest) and 1.0 (highest) in which the images will be stored.
# avatarserver properties file

# default avatar image
avatarserver.default.avatar.url=../../images/local/skin/plugins/avatarserver/avatar.jpg

# Storage size
avatarserver.avatar.size=100
avatarserver.avatar.quality=0.9
                    

Usage

The URL to access to the image is presented below where HASH is a MD5 hash of the user's email.

http://avatar.mydomain.com/[context]/rest/avatarserver/HASH