Libravatar is an open-source and free alternative to Gravatar. We provide a plugin for WordPress that adds support for Libravatar avatars.
A “Libravatar Logo” entry will be added to the avatar type list in the Discussion panel of the WordPress administration area. Just select it and your website will use Libravatar avatars.
Screenshot: