Gravatar : Is there a default image?

Ritesh M Nayak picture Ritesh M Nayak · Apr 21, 2010 · Viewed 25.9k times · Source

I have implemented gravatar for a portal I am building and wanted to know if there is a default image URL for gravatar? Not all people who visit the site are logged in or have email addresses, in such a case, is there a default image that can be shown (accessible via gravatar url)

Answer

Macmade picture Macmade · Apr 21, 2010

To select a default image, you can use the d parameter:

http://www.gravatar.com/avatar/3b3be63a4c2a439b013787725dfce802?d=identicon

Or without a hash:

http://www.gravatar.com/avatar/?d=identicon

Or without the d parameter:

http://www.gravatar.com/avatar

Source: gravatar.com.