11

Is there any php fractal image generating library like stackoverflow's default avatar ? I want to use it for default avatar like this site.

playcode
  • 123
  • 1
  • 4

1 Answers1

13

Stack Overflow avatars are provided by Gravatar. The default image is not a fractal -- it is generated using a variant of the Identicon algorithm, which basically just puts together an image using a couple of simple geometric components in a grid.

There is a PHP implementation of the Identicon algorithm available: http://sourceforge.net/projects/identicons/

  • The original Identicon algorithm used a 3x3 grid. The variant used by Gravatar is 4x4. –  Jun 27 '12 at 04:43
  • I want to use this library. But I have faced [this problem](http://stackoverflow.com/questions/36919485/how-can-i-execute-a-script-outside-of-root-directory-by-another-one). Is there any workaround? – stack Apr 28 '16 at 16:37