After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655116 - Add a user avatar backend (like Gravatar or libravatar)
Add a user avatar backend (like Gravatar or libravatar)
Status: RESOLVED OBSOLETE
Product: folks
Classification: Platform
Component: general
git master
Other All
: Low enhancement
: Future
Assigned To: folks-maint
folks-maint
: 655117 674624 704855 (view as bug list)
Depends on: 660299
Blocks: 791187
 
 
Reported: 2011-07-22 12:17 UTC by Nick Richards
Modified: 2018-08-04 08:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Postler gravatar support (170.49 KB, image/png)
2011-11-03 16:10 UTC, Laurent Pointecouteau
Details
Google does a simple Initial + Color background for fallback (198.92 KB, image/png)
2012-12-18 12:20 UTC, Jakub Steiner
Details
initial-based avatars for empathy. (94.58 KB, image/png)
2014-06-06 12:34 UTC, Bastian Ilsø
Details
Revamped system avatar (505.40 KB, image/png)
2014-06-06 12:36 UTC, Bastian Ilsø
Details

Description Nick Richards 2011-07-22 12:17:23 UTC
It would be great to have as many photos of contacts as possible, as such it would be awesome to have a gravatar backend to retrieve avatars of users based on a hash of their email address.

http://en.gravatar.com/site/implement/

We may think that this is better dealt with in a downstream project (such as libsocialweb) and just use a generic backend for there. If so, feel free to close and redirect.
Comment 2 Laurent Pointecouteau 2011-11-03 16:10:50 UTC
Created attachment 200612 [details]
Postler gravatar support
Comment 3 Laurent Pointecouteau 2011-11-03 16:11:28 UTC
That could be a great idea for gnome-contacts. The mail client Postler already supports it : http://mail.xfce.org/pipermail/xfce4-commits/2011-July/021225.html
Comment 4 Guillaume Desmottes 2012-06-18 13:42:53 UTC
*** Bug 655117 has been marked as a duplicate of this bug. ***
Comment 5 Guillaume Desmottes 2012-06-18 13:43:33 UTC
*** Bug 674624 has been marked as a duplicate of this bug. ***
Comment 6 Guillaume Desmottes 2012-06-18 13:45:19 UTC
^ These two bugs are about adding gravatar and/or robothash support to gnome-contacts.

The main goal here is providing a consistent default for contacts not having any avatar. I'd really like to have that in Folks for 3.6 as Empathy's new roster looks pretty sad if you have a lot of contacts without avatars.
Comment 7 Guillaume Desmottes 2012-06-18 13:45:34 UTC
Btw, https://live.gnome.org/GnomeOS/Design/Whiteboards/Avatars is an interesting reading.
Comment 8 Allan Day 2012-07-18 17:20:10 UTC
Copying my comment from bug 655117:

I discussed this with Jon and Jimmac a little while ago, and we agreed that
something more in the style of http://vanillicon.com/ would make sense - it's
simple, fun, and doesn't carry the semiotic baggage you get with robots :) .
Comment 9 Allan Day 2012-07-18 17:21:18 UTC
Are we mixing two separate issues in this bug? One is generating avatars for contacts that don't have them, the other is pulling existing avatars from Gravatar.
Comment 10 Philip Withnall 2012-07-18 22:50:39 UTC
(In reply to comment #9)
> Are we mixing two separate issues in this bug? One is generating avatars for
> contacts that don't have them, the other is pulling existing avatars from
> Gravatar.

Yeah. I guess the best way to do this with folks’ current architecture would be to add an Individual.default_avatar property which returns the Individual’s avatar if it exists, and (deterministically) generates one otherwise. No need to make this a separate backend, but it would mean standardising on a *single* service for providing default avatars. There would be no means to choose between Gravatar, Robohash and Vanillicon, though perhaps a fallback system could be used which uses Vanillicon if no Gravatar exists.
Comment 11 Frederic Peters 2012-07-19 06:55:32 UTC
Could it be considered to not depend on an external service? There are multiple reasons (they do not apply for everyone, and in every situation), such as reliability, privacy, or depending on a proprietary service.

Ideally I'd prefer for folks to generate avatars by itself, but alternatively an option to opt off would be nice.
Comment 12 Guillaume Desmottes 2012-07-19 07:47:09 UTC
(In reply to comment #11)
> Could it be considered to not depend on an external service? There are multiple
> reasons (they do not apply for everyone, and in every situation), such as
> reliability, privacy, or depending on a proprietary service.
> 
> Ideally I'd prefer for folks to generate avatars by itself, but alternatively
> an option to opt off would be nice.

Is there any of such service using a free implementation we could use locally?
Comment 13 Allan Day 2012-07-19 09:00:05 UTC
The advantage of using an online service is that contacts will look the same across machines. It might suck if that isn't the case.
Comment 14 Frederic Peters 2012-07-19 12:27:54 UTC
> The advantage of using an online service is that contacts will look the same
> across machines. It might suck if that isn't the case.

Of course it would run the same avatar generation code across machines, to get identical results.
Comment 15 Allan Day 2012-07-19 14:17:18 UTC
(In reply to comment #14)
> > The advantage of using an online service is that contacts will look the same
> > across machines. It might suck if that isn't the case.
> 
> Of course it would run the same avatar generation code across machines, to get
> identical results.

Sounds good.
Comment 16 Jasper St. Pierre (not reading bugmail) 2012-11-06 17:08:45 UTC
I'm going to highly push for Gravatar, at least as an option. It's a closed service, yes, but it's a useful one. It's now the de facto place for updating that little icon that goes with your email address.

I implemented Gravatar on extensions.gnome.org and haven't heard any backlash.
Comment 17 Jakub Steiner 2012-12-18 12:20:19 UTC
Created attachment 231797 [details]
Google does a simple Initial + Color background for fallback

Another possibility for avatar-less contacts is to do a simple color hash + overlaid initial.
Comment 18 Jasper St. Pierre (not reading bugmail) 2012-12-18 12:31:21 UTC
gah, why don't I have an image? I should have an image.
Comment 19 Guillaume Desmottes 2013-08-27 12:42:14 UTC
*** Bug 704855 has been marked as a duplicate of this bug. ***
Comment 20 Bastian Ilsø 2014-06-06 12:34:56 UTC
Created attachment 278020 [details]
initial-based avatars for empathy.

After talking to Allan and Jakub I have made some mockups. This is a mockup for empathy's contact list. See also:
https://wiki.gnome.org/Design/OS/Avatars#Objectives
Comment 21 Bastian Ilsø 2014-06-06 12:36:20 UTC
Created attachment 278021 [details]
Revamped system avatar

..a mockup of the new system avatars.
More info at: https://wiki.gnome.org/Design/OS/Avatars#Objectives
Comment 22 Michael Catanzaro 2017-06-06 14:43:45 UTC
Because Gravatar is a user tracking service, I would be very disappointed if its use was enabled by default anywhere in GNOME, where we are otherwise working hard to protect the privacy of users. E.g. if Contacts starts showing Gravatars, then Gravatar is going to know who is in your address book....

There is an alternative. Libravatar uses the same Gravatar API, is already well-adopted in the open source community (e.g. Fedora infrastructure), and avoids this major privacy issue.
Comment 23 Philip Withnall 2017-06-06 15:31:11 UTC
(In reply to Michael Catanzaro from comment #22)
> Because Gravatar is a user tracking service, I would be very disappointed if
> its use was enabled by default anywhere in GNOME, where we are otherwise
> working hard to protect the privacy of users. E.g. if Contacts starts
> showing Gravatars, then Gravatar is going to know who is in your address
> book....
> 
> There is an alternative. Libravatar uses the same Gravatar API, is already
> well-adopted in the open source community (e.g. Fedora infrastructure), and
> avoids this major privacy issue.

Agreed, although it’s unlikely any progress will be made on this one for a while.
Comment 24 Pander 2017-06-06 16:08:46 UTC
Today also got acquainted with libravatar and it deserves more attention than Gravatar for this application. Of course, if you want, Gravatar could still be offered as a secondary service for those who want and understand the risks.
Comment 25 GNOME Infrastructure Team 2018-08-04 08:30:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/folks/issues/26.