Support Gravatar for User Avatars (Icons/Pictures)




Creating/Changing Bugs
10 years ago
2 years ago


(Reporter: Max Kanat-Alexander, Unassigned)




(1 attachment)



10 years ago
There's a nice website that allows you to have the same "avatar" (small picture) that represents you on different websites. It works by email address, so we could support it in Bugzilla.

All we really need is Gravatar::URL:

Here's the Gravatar site for anybody who's interested:

Comment 1

10 years ago
Compared to other RFEs which we said would be better implemented as a plugin, I think this one perfectly matches the criteria to be implemented as a plugin too.

Comment 2

10 years ago
Sure, it'd be an easy-enough plugin.

Comment 3

7 years ago
Hey Guys, I just did a quick and dirty implementation of this at work using our ldap data, some modification to the contrib script, and then some pretty minor changes to show photo IDs. Then I decided to see if there was an open bug for this. I was thinking of adding an interface that would allow you to choose the source of your photo (LDAP if it exists, gravatar, upload). The thing is, my implementation adds a photo column to the profiles table in the db. I can't find any documentation on how to write plugins, but can a plugin do database schema changes?

Comment 4

7 years ago
  Hi Uri. For Bugzilla 3.6, the documentation on Extensions is here:

  Earlier versions of Bugzilla do not have comprehensive documentation for their (different) extensions system.

Comment 5

7 years ago
Created attachment 434305 [details] [diff] [review]
hack gravatar directly into bugzilla

awww it's so easy just to hack gravatar support right in (aside from the addition of lib/Template/Plugin/Digest/ but yeah... that's wrong. I'll work on making an extension out of this.

Comment 6

7 years ago
Uri you might want to check out this blog post . I recently started to write a Gravatar extension when I realized there was a lot more to it than just adding an img tag.

Comment 7

7 years ago
(In reply to comment #6)
> I recently started to write a Gravatar extension when I realized there was a
> lot more to it than just adding an img tag.

  However, an extension that just added an image tag would be a good and simple start.

Comment 8

7 years ago
Hey Guy, I read your post, thanks. Do you mean it's not so simple because of the layout problems that are introduced? To me that doesn't seem like an issue because the default for the extension could just make the image some 16px or so, so as not to affect the layout much at all. At that size it isn't terribly useful, but on the other hand most bloggy sites that use gravatar tend to default to quite small images anyway.

I did include a class on the img tag so that if you wanted to get fancy with the layout you could increase the size of the image to suit your needs. As a matter of fact, it seems rather easy to get that side-bar layout that you've got on your site with nothing more than a few css rules:

div.bz_comment_head {display: table-cell;}
div.bz_comment_head>span {display: block}
pre.bz_comment_text {display: table-cell;}

and of course:
img.gravatar {...}

(it's not perfect, and the widths of the cells aren't uniform, but you get the gist).

When I get a minute (one of these days) I'll try an extension that just does the simplest, dumbest thing. Of course, You're welcome to beat me to the punch if you like =). Especially if you've got fancier plans in mind...

Comment 9

7 years ago
by not so simple i mean if you put the image everywhere it could look dumb and there are many ways to skin this cat. But you're right, do it simply get feedback, move forward from there. 

I'm happy to have someone else take the lead on this, especially if you're excited about it. Goodluck with the extension.

Comment 10

4 years ago
This is probably fixed now, currently needs to be enabled in the user prefs. 

Though mine is not shown and I don't know why …

Comment 11

4 years ago
It works.
Indeed, also seems to be wfm on :)

Comment 13

4 years ago
So you're saying you see my Gravatar? 

Frank, I can't see yours (it shows the generic icon like me) while I can see Pander's (as everone else's except Frédéric's). Odd.
Ah sorry, I removed the picture again, currently looking for a better one, heh. No, I only saw my own one, the one of Pander and various others in this bug here.

Comment 15

4 years ago
Could this user prefernce be set by deafult to ON?

Anyone that has a Gravatar, the Gravatar can be looked up by the email address. Therefore I don't see added value of setting it OFF by default.

If you want it OFF be default, don't use Gravatar to begin with. :)
(In reply to Florian Bender from comment #10)
> This is probably fixed now, currently needs to be enabled in the user prefs. 

this bug isn't fixed. deployed a simple gravatar extension, while this bug is about getting it integrated with bugzilla itself.

for bmo the extension is at, which required additional hooks to implement (see bug 903955).

if you have issues with the gravatar implementation on, please file a bug in the product.

Comment 17

3 years ago
i'd like to mention that gravatars are not working at all right now.

Comment 18

3 years ago
Here it does work. See

One remark though, the images are rescaled to smaller sizes in the browser. This is suboptimal. The Gravatar service can deliver the images in appropriate dimension. Please improve the use of Gravatars in order to minimise downscaling in the browser.

Comment 19

3 years ago
Seems  working now.
gravatar support on is implemented via a bugzilla extension. any issues with gravatar on this bugzilla installation tracked in the "" product, not here.

(In reply to Pander from comment #18)
> One remark though, the images are rescaled to smaller sizes in the browser. This is suboptimal.

this is required to support hidpi/retina displays.  see bug 921860.

Comment 21

2 years ago
Since Gravatar works on bmo, any chance of merging this extension upstream so we call can use it?
You need to log in before you can comment on or make changes to this bug.