如何在SO上生成用户ID图像? [英] How is the user id image generated on SO?

查看:109
本文介绍了如何在SO上生成用户ID图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个网站上与每个用户相关的可爱小万花筒图像有点好奇。
如何生成?可能性是:

I am a little curious about the cute little kaleidoscopic images associated with each user on this site. How are those generated? Possibilities are:


  1. 图像列表已存在于某个文件夹中,随机选择。

  2. 只要用户注册,就会生成图像。

无论如何,我对使用何种算法生成此类图像更感兴趣。

In any case, I am more interested in what kind of algorithm is used to generate such images.

推荐答案

它被称为 Identicon 。如果您输入并通过电子邮件发送,则它基于您的电子邮件地址的哈希值。如果您没有输入电子邮件,则它取决于您的IP地址。

It's called an Identicon. If you entered and e-mail, it's a based on a hash of your e-mail address. If you didn't enter an e-mail, it's based on your IP address.

Jeff 发布了一些.NET代码以生成基于IP的Identicons。

Jeff posted some .NET code to generate IP based Identicons.

这篇关于如何在SO上生成用户ID图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆