Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you force Gravatar into displaying identicon

Tags:

php

gravatar

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?

like image 557
takeshin Avatar asked Apr 13 '10 09:04

takeshin


1 Answers

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.

like image 94
Saffy Avatar answered Sep 23 '22 00:09

Saffy