PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 9, 2022

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

 October 09, 2022     gd, hash, php     No comments   

Issue

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.


Solution

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

Sort of looks like the SOF image.



Answered By - Mike C
Answer Checked By - Marie Seifert (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing