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? :P )

9 Responses to “Quickly find the Gravatar that cor­res­ponds to a given email”

  1. Alex says:

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

  2. Alex says:

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

  3. Lea Verou says:

    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.

  4. Alex says:

    -> http://johndyer.name/lab/gravatartest/
    found via Bing.com which is always my second choice after google :)
    (http://www.bing.com/search?q=gravatar+tester)

  5. Andreas says:

    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

  6. garzanti says:

    @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!

  7. Lea Verou says:

    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!

  8. Rafael says:

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

    • Lea Verou says:

      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.