6

Is there any way to force gravatar to always return the identicon URL?

The only way I found so far is: ?forcedefault=1&default=myCustomGeneratedImageUrlHere. However I don't want to generate an identicon myself.

Any ?forceIdenticon param?

Lance Roberts
  • 22,383
  • 32
  • 112
  • 130
takeshin
  • 49,108
  • 32
  • 120
  • 164

2 Answers2

13

Add &f=y which will force use of the default, and specify the default to be an identicon with d=identicon or default=identicon

For example:

http://www.gravatar.com/avatar/HASHVALUE?f=y&d=identicon

The other defaults available are described on the Gravatar site.

Lance Roberts
  • 22,383
  • 32
  • 112
  • 130
Saffy
  • 131
  • 1
  • 3
1

I ended up with just using md5(MY_CUSTOM_SALT + $email) as an identifier.

takeshin
  • 49,108
  • 32
  • 120
  • 164