用Gravatar制作全球通用头像
Gravatar的概念首先是在国外的独立WordPress博客中兴起的,当你到任何一个支持Gravatar的网站留言时,这个网站都就会根据你所提供的Email地址为你显示出匹配的头像。
下面几个步骤可以告诉大家如何定制自己的个性头像:
1. 注册:进入Gravatar网站(网址http://gravatar.com/),点击左上角菜单里的Sign Up。
2. 验证:进入你的邮箱,从Gravatar发出的信件中拷贝那段链接地址,在浏览器输入。
3. 设置昵称、密码。
4. 选择上传图片:一般都是从电脑中上传
5. 剪裁大小
6. 评级:你的头像要被分级的,因为可能会有朋友喜欢用比较曝露的头像,会影响小朋友身心健康的说。如果你的图片不是特别那个的话,一般不用选择Sex或暴力之类的,直接选择G(通用型),这样基本任何网站都能显示这个等级的图片。
7. 等待审核:可能需要站方短暂审核一下,一般选择了G,而你的图片没什么特别的,很快就通过。一般遇上慢的情况也就10分钟左右。
完成以上步骤后,在目前大多数博客(如wordpress)留言,只要写下你的email地址,就能显示头像了。当然,如果你没有去注册,一般也能显示默认的头像,这个要看网站的设置啦。
那如何在程序中使用呢?只需要生成类似下面的地址即可:
http://www.gravatar.com/avatar/37dd22e2276bb285de559c1a0433a49d?s=96&d=monsterid&r=G
其中:
- 37dd22e2276bb285de559c1a0433a49d: 邮箱或者id经过md5加密后的字符串;
- s=96 : 生成的图像的大小,单位为像素
- d=monsterid : 生成的图像类别,这里表示生成小怪物
- r=G : 表示分级,类似电影分级


四月 9th, 2010 at 19:53
测试一下我的头像呢~~~
[回复]
Codigg 回复:
四月 9th, 2010 at 20:54
嗯,wordpress里面没有看到有美女随机图片啊~~这些小怪物看腻了~
[回复]
一月 15th, 2012 at 19:53
I just wanted to compose a quick comment in order to appreciate you for all of the wonderful guides you are giving on this website. My particularly long internet look up has now been rewarded with reasonable details to exchange with my friends and classmates. I would admit that most of us website visitors actually are unquestionably fortunate to be in a decent community with so many lovely individuals with very beneficial secrets. I feel pretty happy to have seen the site and look forward to many more thrilling minutes reading here. Thank you once again for a lot of things.
[回复]
一月 21st, 2012 at 19:51
No matter the ending is perfect or not, you cannot disappear from my world.
[回复]
一月 26th, 2012 at 13:17
You feature a superb blog . would you want to make a little guest posts on my personal website?
[回复]
一月 27th, 2012 at 11:39
I suggest you take part in contests fir the 1 of the highest quality blog pages on the internet. I’m going to suggest highly this website!
[回复]
二月 3rd, 2012 at 00:56
Generally I’d gotta to agree with this. Last quarter while I was browsing at Brookstone I had a very similar arrangement. I recently to go with it.
[回复]
二月 4th, 2012 at 13:52
Great a single blog operator triumph website article wonderful sharings on this web site always have pleasurable
[回复]
二月 4th, 2012 at 17:59
Amazing article admin thank you. I found what i was looking for right here. I will review whole of posts in this time of day
[回复]
二月 5th, 2012 at 15:47
Personally I’m impressed by the quality of this. Generally when I come across these sort of things I like to post them on Digg. Although this time I’m not sure if this would be best for the users. I’ll look around and find another article that may work.
[回复]