Home >Backend Development >PHP Tutorial >这种根据MD5生成不同像素图片是怎么弄得

这种根据MD5生成不同像素图片是怎么弄得

WBOY
WBOYOriginal
2016-06-06 20:14:241415browse

https://cdn.v2ex.co/gravatar/4dfeda4b5bde0b33e134fb03b24162ac?s=48&d=retro

这种根据MD5生成不同像素图片是怎么弄得

回复内容:

https://cdn.v2ex.co/gravatar/4dfeda4b5bde0b33e134fb03b24162ac?s=48&d=retro

这种根据MD5生成不同像素图片是怎么弄得

gravatar
后面那个md5值其实是加密过的email地址。

不过你这地址后面带了2个参数?s=48&d=retro
s是图片大小
d是如果查不到就返回什么风格,retro就是传统像素图

你可以试试把链接中的md5换成64f2aff021ad2833a7b98920f51df7da试试玩,这是我的gravatar头像。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn