Skip to content

Boy132/redmine_gemavatar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemavatar 2 (Redmine 4.2/ 5.0/ 5.1)

Gemavatar 2 is the (inofficial) successor of the original Gemavatar plugin for Redmine. It's replacing the Gravatars of users by JPEG pictures that are stored in the ldap auth_source of Redmine. Make sure to enable Gravatars!

Installation

  1. Download the latest release (or git clone the repo git clone [email protected]:Boy132/redmine_gemavatar.git) and unzip it in the plugins folder. Please be sure to rename the folder to redmine_gemavatar if necessary.

  2. Install required gems: bundle install --without development test --no-deployment

  3. Do the database migration: bundle exec rake redmine:plugins NAME=redmine_gemavatar RAILS_ENV=production

  4. Restart the web server service. (e.g. touch tmp/restart.txt)

Configuration

First, make sure that the Gravater feature of Redmine is enabled.

Then go to Administration > Plugins and click Configure on the Gemavatar plugin.

There you must set:

  • The maximum time the avatars are cached on disk.
  • Whether to allow users to refetch their own avatar from AD.
  • The string that defines the property in your LDAP server where the photo is stored (thumbnailphoto works for me, but jpegphoto was the original plugin value)

Checking that it works

  • Just go to your user page, and your avatar should be visible there.
  • Note that the jpeg pictures are automatically cropped to be squared