我正在寻找一个可以创建Identicon的PHP库/函数/类。
发布于 2008-10-25 19:24:47
this怎么样?
这就是Scott为Wordpress做标识的方式,你可以下载代码,自己看看。
希望能有所帮助。
发布于 2008-10-25 22:42:13
我使用的是:
class Gravatar
{
static public function GetGravatarUrl( $email, $size = 128, $type = 'identicon', $rating = 'pg' )
{
$gravatar = sprintf( 'http://www.gravatar.com/avatar/%s?d=%s&s=%d&r=%s',
md5( $email ), $type, $size, $rating );
return $gravatar;
}
}它基本上和SO使用的是一样的东西。它支持gravatar.com支持的所有内容。
发布于 2009-08-01 04:12:11
Sourceforge有一个identicon实现
https://stackoverflow.com/questions/236879
复制相似问题