Nick Heiner
Nick Heiner

Reputation: 122530

How to implement a gravatar-like algorithm?

For fun, I would like to implement something that takes an arbitrary string as input and returns a random image that is seeded from the string. It doesn't have to be super robust or anything. I'd love to be able to make something like the unicorn/pony gravatars that SO had a while ago.

If Gravatar were open source and had a plugin architecture for implementing new image types, I'd like to build one. But I wasn't able to find that.

I would like to use Python or Java if possible.

Upvotes: 5

Views: 523

Answers (1)

Greg Hewgill
Greg Hewgill

Reputation: 993881

You could look at the code that Stack Overflow itself uses for the unicorns: https://web.archive.org/web/20110224234102/http://unicornify.appspot.com/

Upvotes: 2

Related Questions