Quickly find the Gravatar that cor­res­ponds to a given email

Today I needed to quickly find the Gravatars that corresponded to a bunch of email addresses for some reason (don’t ask). After a bit of googling and wandering around in Gravatar’s official site and others, I firgured out it’s probably much quicker to write a short PHP script for that myself, than keep looking.

Here it is, in case someone ever needs to do something similar: (click on the screenshot)

Quickly find the Gravatar that cor­res­ponds to a given email

(has anyone noticed my latest love affair with Helvetica/Arial? 😛 )

  • http://www.google.gr/search?hl=el&client=firefox-a&rls=com.ubuntu%3Aen-US%3Aofficial&hs=V1k&q=vote+for+Nicolas+Sarkozy&btnG=%CE%91%CE%BD%CE%B1%CE%B6%CE%AE%CF%84%CE%B7%CF%83%CE%B7&a Alex

    Instead of using php you could simply use javascript to md5-hash the email and manage the response from the gravatar site via ajax.

  • http://www.google.gr/search?hl=el&client=firefox-a&rls=com.ubuntu%3Aen-US%3Aofficial&hs=V1k&q=vote+for+Nicolas+Sarkozy&btnG=%CE%91%CE%BD%CE%B1%CE%B6%CE%AE%CF%84%CE%B7%CF%83%CE%B7&a Alex

    –but to say the truth, it’s far more beautiful than the rest, known by me, gravatar testers 🙂

  • http://leaverou.me Lea Verou

    Yeah, I thought about using JS, but it would take more time to find + include that md5 script, in php it’s a built-in function. The performance benefit is also questionable, since with JS you’d have the overhead of downloading the script. 🙂

    Which are the other gravatar testers? I couldn’t find any.

  • Alex

    -> http://johndyer.name/lab/gravatartest/
    found via Bing.com which is always my second choice after google 🙂

  • http://30bytes.info Andreas

    Congrats. Smart, quick and helpful ☺

    My only hesitation is that, when I enter a non existing email address (like asdfasdfa34234234234), it still finds 3 gravatars. Is it normal?

    Merry Christmas

  • http://garzanti.blogspot.com garzanti

    @Andreas: Lea is not making email validation, for a simple play of what she had done is pardonable enough 🙂

    @Lea I liked your post about rounding with precision from February this year.

    Happy New Year!

  • http://leaverou.me Lea Verou

    Happy holidays + happy new year to all!

    @Alex: Ah thanks, I had only googled. However, that doesn’t really help in cases where there is no Gravatar registered. For instance, in my case, I saw a blog comment with an identicon and I was wondering if the poster used email address X, Y or Z for it. So, even if I had found it, it wouldn’t help.

    @Andreas: It wouldn’t help in anything to perform email validation. Gravatar doesn’t (and can’t). I can even think of a few cases where this could even be considered a feature.

    @garzanti Thanks!

  • http://ratherodd.com Rafael

    I imagine some typogrpahy nerds would have a heart attack if they saw you writing “Helvetica/Arial”, AS IF they were the same thing. 😉

    • http://leaverou.me Lea Verou

      Oh my, now I’M going to have a heart attack if people actually thought that!! 🙂

      I just meant that I like both (yes, of course Helvetica is more well-designed, but judging them independently, both are nice) and that some people will see Helvetica, but some others will see Arial (if they don’t have Helvetica installed). Not that they are the same thing!!!

      I even reminded people in a more recent post of mine that Arial is a rip-off of Helvetica.

  • http://www.cheapipodssale.com/ Cheap iPods iPhones for Sale

    Java script is more better than php to manage the email and response from a gravatar site via ajax.

    • http://leaverou.me Lea Verou

      You wouldn’t even need Ajax, just plain ol’ JavaScript. You would however need an md5 script, whereas PHP has md5 native.

  • dfdfd

    hey nice

  • http://www.ajibanda.com Aj Banda

    wow Thanks for this!

  • Martin Cooney

    Well, a very warm thanks for the neat utility, Lea. I use it all the time to quickly discover whether guest posters have an attached pic, as part of my guidelines.

  • http://seommotips.com/ Suresh Khanal

    Its very handy and really useful!

  • Guest

    Thank you!

  • Sylvia

    Thank you for creating a way to check if people have Gravatars. I get so many people asking to contribute to my blog that I had to set some guidelines and having a Gravatar is required. So, thanks for a great tool!

  • Ron

    Thanks for this … Little utilities that do exaclty what they claim are so valuable.. bookmarked!

  • Willem Wijnans

    Hey thats cool, is there any way to do it vice versa? Gravatar profile to email?

  • http://ninZa.co/ Larry Pi @ ninZa.co

    Thank you for the tool, really appreciate it!

  • http://www.kwentology.com/ Browse

    thanks this works for me. I’m using it on my website. This is great to learn someone’s pic without having making other moves.

  • Pingback: all the way up remy ma()

  • Pingback: angara fahise()

  • Pingback: kalyan matka()

  • Pingback: www.recycletotes.com()

  • Pingback: angara fahise()

  • Pingback: bursa orospu()

  • Pingback: http://www.tradeonixbonuses.com/bonus-tutorial - tradeonix()