Giter VIP home page Giter VIP logo

identicon's People

Contributors

arjenm avatar blaugueux avatar dalecgu avatar f21 avatar grummfy avatar johannesschobel avatar lucasmichot avatar thehiddenhaku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

identicon's Issues

Imagemagick support

Would you be able to add imagemagick support so we can choose between using imagick and gd? 😄

How to show an Identicon image

I'm using Laravel framework
As you can see from the title I want to show the identicon image but i just get some binary data on screen
image

What do I have to do? Can you guys help me?

    public function Identicon(Request $request, $string)
    {
        $identicon = new Identicon();
        return $identicon->displayImage(md5($string), 100);
    }

@blaugueux

Username preview identicon

If github account creation were to preview identicon some seemingly tragic patterns could be avoided

Like github user ToEatFreshBabies having a menacing grin. Methinks s/he fiddled with preview to attain the result

More squares

Hello.
How can I increase the number of squares for an image?
Currently it's 5 x 5.
I would like to have more!
I don't think I'm good enough to succeed by modifying the source code on my own.
Could this be an interesting new feature to add to parameters like "size"?

hellow man i work with laravel and i host in heroku app

Whoops, looks like something went wrong.

1/1
Exception in /app/vendor/yzalis/identicon/src/Identicon/Generator/GdGenerator.php line 15:
GD does not appear to be avaliable in your PHP installation. Please try another generator

when i search i found that

the line 15 should be like that

    if (!extension_loaded('gd') && !extension_loaded('ext-gd') ) {

cause herku work with ext-gd can you fi that cause heroku install your repo automatically i cant change it by my one thanx

index of arrayOfSquare exceeds 4

I find a bug about these lines of code(BaseGenerator.php):

foreach ($chars[1] as $i => $char) {
if ($i % 3 == 0) {
$this->arrayOfSquare[$i/3][0] = $this->convertHexaToBoolean($char);
$this->arrayOfSquare[$i/3][4] = $this->convertHexaToBoolean($char);
} elseif ($i % 3 == 1) {
$this->arrayOfSquare[$i/3][1] = $this->convertHexaToBoolean($char);
$this->arrayOfSquare[$i/3][3] = $this->convertHexaToBoolean($char);
} else {
$this->arrayOfSquare[$i/3][2] = $this->convertHexaToBoolean($char);
}
ksort($this->arrayOfSquare[$i/3]);
}

the length of $char is 16, when $i is 15, $i / 3 is 5, which is not correct, because the size of matrix is 5, the max value of $i must be smaller than 5.

Extract the color of an Identicon ?

Hi,

I would like to extract the color generated by

$identicon->getImageDataUri('myString');

I can see it here :

// var_dump($identicon)
object(Identicon\Identicon)[166]
  private 'generator' => 
    object(Identicon\Generator\GdGenerator)[175]
      {...}
      protected 'color' => 
        array (size=3)
          0 => int 64
          1 => int 112
          2 => int 48

But can't use

$identicon->generator->getColor();

because of 'private' generator property.

Prevent repeated hashing

I have original values ​​and already built hashes, both should result in the same identicon. Do I have to hash all hashes again? Or is there a solution for this (without changing setString($string) for myself)?

Best regards

Tagged release

Could you please tag a release so that we can target a specific release in composer?

Tnx!

class not autoloaded

I followed your directions, however the class was not autoloaded. I had to do a

require_once('./vendor/yzalis/identicon/src/Identicon/Identicon.php');

for the class to load.

Tag new Version

Can you tag a new version with the merged feature? The official 1.1 is from 2014..
Thanks

Base64 not showing

Can't get the Base64 URI's/strings to work.

Just shows the "broken img" icon whatever I put as the text value in getImageDataUri()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.