views:

807

answers:

8

I've been admiring StackOverflow's default quilt-like profile pictures (which I notice are also on the Fail Blog) and am curious what program both are using to generate them.

But what I really want to know is: If you were to design the system to create default profile pictures, how would you do it?

I'm looking for ideas on what algorithm you'd use, as well as things like how you would related the image to the user, be it related to their username, or some portrayal of their progress (ie the image gets more complex, or larger, as they gain reputation).

+7  A: 

FWIW, the default pictures are generated by gravatar, which is why you'll see them on more than this site.

Greg Hewgill
A: 

Use a Julia set or something like that and set the initial conditions to a hash of the user's email address.

Adam Pierce
Neat idea, but really difficult to automatically generate 'interesting' parts of the fractal.
Nick Johnson
+1  A: 
PhirePhly
+6  A: 

It's called an Identicon. On Stackoverflow it Gravatar uses your IP address to generate the image.

yjerem
I wonder why this was voted down...out of up votes so I can't restore it.
John Sheehan
SO doesn't use your IP address, per se - gravatar does, and SO uses gravatar...
Jason Bunting
The IP is not used if you're logged in and your profile includes an email address. In that case, the email address is hashed to create the gravatar.
davenpcj
A: 

I'd use a jpeg server tool (aspjpg or similar) to manipulate the image on load so it displays their badges within their profile pic. In fact, using any tool to dynamically generate images is pretty cool. Applying some sort of 3d or flash technology to dynamically create images using random variables for eye spacing or facial structure would be pretty wicked as well. But ya this is a weird question. hah!

Kolten
+3  A: 

This is an editorial, not necessarily an answer.

Those auto-generated avatars on this site come from a service (Gravatar) that focuses exclusively on providing avatars and is therefore the core of their business. For apps that aren't specifically intended to generate and display avatars, I would just go with an empty placeholder (like Facebook). It's a neat feature, but is it worth your development time when a simple placeholder would be just as effective?

John Sheehan
A: 

I did something similar years back, I used POV-Ray to generate little 3D scenes with torusses (torii ?) and spheres. There were lots of parameters to tweak such as the position, size and colour of each object.

POV-Ray is a scriptable 3D render engine, you can find it here.

Unfortunately my images all looked too similar to each other. I love Gravatar's identicons as uses on this site. I think the symmetry helps and the shapes are unique enough that you can identify users fairly clearly.

Adam Pierce
A: 

In ruby there have a library http://github.com/swdyh/quilt to generate it!

huacnlee