Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate unique images from hashed informations with PHP GD?

Tags:

php

hash

gd

Good day,

in the website I'm working on, I would like to display an unique image to the user generated with a hash from his email address.

Should I generate fractals ?

If so, how can I make em "unique" or more specifically, easier to recognize by the user who has just logged on ?

I pretty much like the associated user's images by Stackoverflow to their new users.

I am using PHP GD.

Thank in advance for any tips to achieve this.

like image 781
Cybrix Avatar asked Jan 28 '11 21:01

Cybrix


1 Answers

Here's some source code that you can run: http://www.exorithm.com/algorithm/view/unique_image

Sort of looks like the SOF image.

like image 122
Mike C Avatar answered Oct 05 '22 02:10

Mike C