您将如何生成默认用户个人资料图片?

时间:2022-04-13 16:46:51

I've been admiring *'s default quilt-like profile pictures (which I notice are also on the Fail Blog) and am curious what program both are using to generate them.

我一直在欣赏*的默认被子般的个人资料图片(我注意到它也在失败的博客上),我很好奇什么程序都用来生成它们。

But what I really want to know is: If you were to design the system to create default profile pictures, how would you do it?

但我真正想知道的是:如果你要设计系统来创建默认的个人资料图片,你会怎么做?

I'm looking for ideas on what algorithm you'd use, as well as things like how you would related the image to the user, be it related to their username, or some portrayal of their progress (ie the image gets more complex, or larger, as they gain reputation).

我正在寻找关于你使用什么算法的想法,以及诸如如何将图像与用户相关联,与用户名相关,或者对他们的进展的一些描述(即图像变得更复杂,或更大,因为他们获得声誉)。

8 个解决方案

#1


11  

FWIW, the default pictures are generated by gravatar, which is why you'll see them on more than this site.

FWIW,默认图片由gravatar生成,这就是为什么你会在这个网站上看到它们的原因。

#2


9  

It's called an Identicon. On * it Gravatar uses your IP address to generate the image.

它被称为Identicon。在*上,Gravatar使用您的IP地址生成图像。

#3


3  

This is an editorial, not necessarily an answer.

这是一篇社论,不一定是答案。

Those auto-generated avatars on this site come from a service (Gravatar) that focuses exclusively on providing avatars and is therefore the core of their business. For apps that aren't specifically intended to generate and display avatars, I would just go with an empty placeholder (like Facebook). It's a neat feature, but is it worth your development time when a simple placeholder would be just as effective?

这个自动生成的网站来自一个服务(Gravatar),专注于提供头像,因此是他们业务的核心。对于不是专门用于生成和显示头像的应用程序,我会选择一个空占位符(如Facebook)。这是一个很好的功能,但是当一个简单的占位符同样有效时,是否值得你的开发时间?

#4


1  

A very good source of images would be flame fractals. They are rather computationally expensive, so simply sourcing them from a project like electric sheep or having them be rendered by the user's computer should be considered to offload the work.

一个非常好的图像来源是火焰分形。它们的计算成本相当昂贵,因此只需从电动绵羊等项目中获取它们或者让它们由用户的计算机渲染它们就应该考虑卸载工作。

Who wouldn't want default profile pictures like these?

谁不想要这样的默认个人资料图片?

alt text http://sheepserver.net/v2d6/gen/202/124809/icon.jpg alt text http://sheepserver.net/v2d6/gen/202/124805/icon.jpg alt text http://sheepserver.net/v2d6/gen/202/125373/i77.jpg alt text http://sheepserver.net/v2d6/gen/202/125431/i116.jpg

alt text http://sheepserver.net/v2d6/gen/202/124809/icon.jpg alt text http://sheepserver.net/v2d6/gen/202/124805/icon.jpg alt text http:// sheepserver。 net / v2d6 / gen / 202/125373 / i77.jpg alt text http://sheepserver.net/v2d6/gen/202/125431/i116.jpg

#5


0  

Use a Julia set or something like that and set the initial conditions to a hash of the user's email address.

使用Julia集或类似的东西,并将初始条件设置为用户电子邮件地址的哈希值。

#6


0  

I'd use a jpeg server tool (aspjpg or similar) to manipulate the image on load so it displays their badges within their profile pic. In fact, using any tool to dynamically generate images is pretty cool. Applying some sort of 3d or flash technology to dynamically create images using random variables for eye spacing or facial structure would be pretty wicked as well. But ya this is a weird question. hah!

我使用jpeg服务器工具(aspjpg或类似工具)来处理负载上的图像,以便在他们的个人资料图片中显示他们的徽章。实际上,使用任何工具动态生成图像都非常酷。应用某种3D或闪光技术动态创建图像使用随机变量的眼睛间距或面部结构将是非常邪恶的。但是,这是一个奇怪的问题。哈!

#7


0  

I did something similar years back, I used POV-Ray to generate little 3D scenes with torusses (torii ?) and spheres. There were lots of parameters to tweak such as the position, size and colour of each object.

几年前我做过类似的事情,我使用POV-Ray生成带有圆环(torii?)和球体的小3D场景。有许多参数需要调整,例如每个对象的位置,大小和颜色。

POV-Ray is a scriptable 3D render engine, you can find it here.

POV-Ray是一个可编写脚本的3D渲染引擎,你可以在这里找到它。

Unfortunately my images all looked too similar to each other. I love Gravatar's identicons as uses on this site. I think the symmetry helps and the shapes are unique enough that you can identify users fairly clearly.

不幸的是,我的图像看起来都太相似了。我喜欢Gravatar的识别作为本网站的用途。我认为对称有助于形状足够独特,您可以非常清楚地识别用户。

#8


0  

In ruby there have a library http://github.com/swdyh/quilt to generate it!

在ruby中有一个库http://github.com/swdyh/quilt来生成它!

#1


11  

FWIW, the default pictures are generated by gravatar, which is why you'll see them on more than this site.

FWIW,默认图片由gravatar生成,这就是为什么你会在这个网站上看到它们的原因。

#2


9  

It's called an Identicon. On * it Gravatar uses your IP address to generate the image.

它被称为Identicon。在*上,Gravatar使用您的IP地址生成图像。

#3


3  

This is an editorial, not necessarily an answer.

这是一篇社论,不一定是答案。

Those auto-generated avatars on this site come from a service (Gravatar) that focuses exclusively on providing avatars and is therefore the core of their business. For apps that aren't specifically intended to generate and display avatars, I would just go with an empty placeholder (like Facebook). It's a neat feature, but is it worth your development time when a simple placeholder would be just as effective?

这个自动生成的网站来自一个服务(Gravatar),专注于提供头像,因此是他们业务的核心。对于不是专门用于生成和显示头像的应用程序,我会选择一个空占位符(如Facebook)。这是一个很好的功能,但是当一个简单的占位符同样有效时,是否值得你的开发时间?

#4


1  

A very good source of images would be flame fractals. They are rather computationally expensive, so simply sourcing them from a project like electric sheep or having them be rendered by the user's computer should be considered to offload the work.

一个非常好的图像来源是火焰分形。它们的计算成本相当昂贵,因此只需从电动绵羊等项目中获取它们或者让它们由用户的计算机渲染它们就应该考虑卸载工作。

Who wouldn't want default profile pictures like these?

谁不想要这样的默认个人资料图片?

alt text http://sheepserver.net/v2d6/gen/202/124809/icon.jpg alt text http://sheepserver.net/v2d6/gen/202/124805/icon.jpg alt text http://sheepserver.net/v2d6/gen/202/125373/i77.jpg alt text http://sheepserver.net/v2d6/gen/202/125431/i116.jpg

alt text http://sheepserver.net/v2d6/gen/202/124809/icon.jpg alt text http://sheepserver.net/v2d6/gen/202/124805/icon.jpg alt text http:// sheepserver。 net / v2d6 / gen / 202/125373 / i77.jpg alt text http://sheepserver.net/v2d6/gen/202/125431/i116.jpg

#5


0  

Use a Julia set or something like that and set the initial conditions to a hash of the user's email address.

使用Julia集或类似的东西,并将初始条件设置为用户电子邮件地址的哈希值。

#6


0  

I'd use a jpeg server tool (aspjpg or similar) to manipulate the image on load so it displays their badges within their profile pic. In fact, using any tool to dynamically generate images is pretty cool. Applying some sort of 3d or flash technology to dynamically create images using random variables for eye spacing or facial structure would be pretty wicked as well. But ya this is a weird question. hah!

我使用jpeg服务器工具(aspjpg或类似工具)来处理负载上的图像,以便在他们的个人资料图片中显示他们的徽章。实际上,使用任何工具动态生成图像都非常酷。应用某种3D或闪光技术动态创建图像使用随机变量的眼睛间距或面部结构将是非常邪恶的。但是,这是一个奇怪的问题。哈!

#7


0  

I did something similar years back, I used POV-Ray to generate little 3D scenes with torusses (torii ?) and spheres. There were lots of parameters to tweak such as the position, size and colour of each object.

几年前我做过类似的事情,我使用POV-Ray生成带有圆环(torii?)和球体的小3D场景。有许多参数需要调整,例如每个对象的位置,大小和颜色。

POV-Ray is a scriptable 3D render engine, you can find it here.

POV-Ray是一个可编写脚本的3D渲染引擎,你可以在这里找到它。

Unfortunately my images all looked too similar to each other. I love Gravatar's identicons as uses on this site. I think the symmetry helps and the shapes are unique enough that you can identify users fairly clearly.

不幸的是,我的图像看起来都太相似了。我喜欢Gravatar的识别作为本网站的用途。我认为对称有助于形状足够独特,您可以非常清楚地识别用户。

#8


0  

In ruby there have a library http://github.com/swdyh/quilt to generate it!

在ruby中有一个库http://github.com/swdyh/quilt来生成它!