There is a simple way with php, a simple script or URL manipulation to build a URL for the gravatar image corresponding to an email?
Ex. http://gravatar.com/avatars/avatar.php?email=myemail@myserver.com
and this return a jpeg or png image.
If there is no simple way like the example, what is the easiest way you know to resolve a url of the gravatar corresponding to an email?. Thanks
You can find a sample script with PHP code on their implementation site: http://en.gravatar.com/site/implement/php
The root script is at http://www.gravatar.com/avatar/ The next part of the URL is the hexadecimal MD5 hash of the requested user's lowercased email address with all whitespace trimmed. You may add the proper file extension, but it's optional.
The complete API is here http://en.gravatar.com/site/implement/
You can just see this simple function of Gravatar which can:
Return the gravatar image for that email.
You can use then like:
Though @dipi-evil's solution works fine, I wasn't getting larger image with it. Here's how I got it working properly.
Use this: