There are many challenges to creating your own micro blogging service. One of these I recently confronted: letting a user upload an image of themselves, to personalise the users experience.
Uploading a picture to a server sounds simple, right?
But consider this:
- • What if people upload massive photos, using up all of our disk space?
- • I mean, people have many megapixel cameras nowadays…
- • What if users want to crop their image?
- • People are used to tip top, multi-million $, easy to use services like Facebook, we don’t want to look like a bunch of amateurs if at all possible.
But then one day I uploaded an image for my WordPress profile, and my Stack Overflow profile picture changed instantly.
So it turns out that there’s this service called Gravitar, where you just need to send a users email address (after encryption), with a HTTP GET request to the Gravitar guys, and they deliver a users profile picture for you!
Stack Overflow uses Gravitar
WordPress Uses Gavitar too: note the same icon
A screenshot from the prototype user profile page we are currently building.
I think that we will use Gravitar too. ᵔᵜᵔ