11
$\begingroup$

Do you just generate random patterns and give them to users, which is somehow non repeating? Also, where can I find more about this. Thanks.

$\endgroup$
15
$\begingroup$

That is called a Gravatar, which by default is generated by hashing your e-mail address. To change it you go to your account page (by clicking on your own username), click on "edit", and there is a link available for you to change your picture.

Theoretically, as a hash, the Gravatar is not unique. But the probability of actual collision is really, really low.

$\endgroup$
  • $\begingroup$ No, I didnt make it clear, then. My qyestion was, is this a non-repeating pattern? Is it unique for all users (have no interest in changing it or anything) $\endgroup$ – kuch nahi Apr 23 '11 at 16:57
  • 4
    $\begingroup$ @yayu: Willie explained this in his answer, I will leave the proof of that as an exercise to the reader... $\endgroup$ – Asaf Karagila Apr 23 '11 at 16:59
  • $\begingroup$ I see. By what process can someone automatically generate so many unique pictures, with low possibility of duplication? $\endgroup$ – kuch nahi Apr 23 '11 at 16:59
  • 1
    $\begingroup$ @Willie One needs to distinguish between mathematical collision vs. end-result visual collision - which depends on many non-mathematical factors (screen resolution, visual acuity, etc). E.g. on screens that are smaller or lower resolution (e.g. phones) there's a higher probability of visual collision. $\endgroup$ – Bill Dubuque Apr 23 '11 at 18:02
  • $\begingroup$ see en.wikipedia.org/wiki/Identicon $\endgroup$ – Jeff Atwood Apr 26 '11 at 9:47
  • $\begingroup$ As suggested in Jeff's comment, the automatically-generated Gravatars are actually a specific subfeature of Gravatars called "Identicons." $\endgroup$ – Isaac Jun 25 '11 at 14:21
8
$\begingroup$

Googling Gravatar Algorithm from Willie's answer gave me the hint. Here are some other quesstions:

what is the algorithm used to generate those little gravatar identicon images?

How is the default user avatar generated?

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .