MAvatar (or MosaicAvatar) is a Scala pet project that I have been working on lately based around Twitter. The idea is quite simple: MAvatar creates a mosaic of a user's profile picture. The mosaic itself is composed of profile images chosen among the user's friends. Essentially, for each pixel in the profile picture, the algorithm picks the friend's profile with the closest average color.
The end result is formatted as a web page which features a zoom and displays some useful (if not hurtful) statistics to tell you which friends were the most or least used in the process of creating the mosaic. The process is entirely automated and works for any Twitter user as long as (1) her/his account is not protected and (2) she/he is actually following other users.
MAvatar is mainly built using Scala (whose XML support really wins when it comes to parsing the Twitter API's XML and to generate HTML) and features some simple jQuery and jQuery UI.
The source code is available from my GitHub repository at: http://github.com/kafecho/MosaicAvatar. I will be adding a Maven build file at some point.I do think that MAvatar is quite a fun way of seeing yourself through the eyes of your friends.
I am currently planning to roll it out as a public web site designed using the Lift Framework, however as I am back to work from next week, this might take me a little while longer.
And to finish, here is a MAvatar I've done before: http://mosaicavatars.s3.amazonaws.com/gbelrose.html ( I hope my least useful friends don't get offended :-) The UI has only been tested on Safari, Firefox and Chrome. I am not sure what it would look like on IE.
No comments:
Post a Comment