Just to see how easy it is to integrate with Gravatar I decided to write a tiny Scala framework for generating the Gravatar URLs, aptly named Scravatar.
It is hosted on Github and as of today, it is even available in maven central.
Here's how it works in its simplest form:
If you want to a URL that you can use as src in the img tag on your site served over a HTTPS connect, you'd want to set the ssl flag to true. That way browsers won't won't show a warning saying that your site contains insecure content.
And here's an example setting all the available properties before generating a URL.
The Gravatar class in Scravatar is immutable (and thus thread safe).
As for the maven central repo, the groupid is com.andersen-gott and the artifactid is scravatar. It is cross compiled for Scala version 2.9.1 and 2.9.2.