Of Gravatars and Robohashes
codingthewheel.com
codingthewheel.com
I didn't realize that this was a use-case anyone was interested in, but it sort of makes sense. I've added a parameter you can pass to RH.org to deal with the gravatar pull on my side, so you don't have to.
This adds a bit of serverload, since I need to make a bunch of requests, but it's not THAT bad.
http://robohash.org/colin@sq7.org?gravatar=yes
If you pass gravatar=yes, it will make a pull to the gravatar URL for that address. If something exists there that isn't the default, it will issue a 301 over to the site.
Otherwise, it will return the robohash you requested. It also passes the size param over to Gravatar, just to be nice ;)
To maintain email privacy, you could use a straight pass-through when using Gravatar. In this case, your URL could look like:
http://robohash.org/620050a4db5104bae758cd75171d64ca?gravata...
I've added this.
Try - http://robohash.org/620050a4db5104bae758cd75171d64ca?gravata...
They're intentionally ugly. The theory is that an ugly default avatar makes the user more likely to upload their own image.
[1] http://www.shamusyoung.com/twentysidedtale/?p=1462
"A couple weeks ago I made a WordPress plugin to generate unique monsters for each commenter. Don Park came up with the original idea for representing users with geometric shapes. Since I already had the framework in place I thought I’d make a WordPress plugin for the original geometric Identicons."
http://www.gravatar.com/avatar/8ca7425c8ada807b9bf6934f10d59...
It's a fun trick, but it should't be possible.
The technique is described in the Gravatar docs under "Default Image."
An excellent bonus - my robohash looks exactly like Bender from Futurama :^)
Each two digits of hex is 255, and I count 16 pairs, but can think of only 8 elements in the photos (eyes, ears, nose, mouth, head, body, arms, background).
If it's those 8 elements and they're derived from four digits in the hash, then you need 65,535 or so different ears.
I'm guessing the solution to this is to reduce the hash further... so you get more repetition where two texts produce the same robot, but apparently they've not made it too bad.
How far did robohash reduce it? Or how far should one reduce it? How many images does a robohash art set have?
There are three sets-
The default set has 10 base colors, 10 base faces, 10 Bodies, 10 Eyes, 10 Accessories, 10 Mouths.
There are then 2 sets of 10 backgrounds.
So 3(10^6)(210) ~= 60,000,000