takeshin
takeshin

Reputation: 50638

How do you force Gravatar into displaying identicon

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?

Upvotes: 6

Views: 1326

Answers (2)

Saffy
Saffy

Reputation: 131

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.

Upvotes: 13

takeshin
takeshin

Reputation: 50638

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

Upvotes: 1

Related Questions