thephpleague / color-extractor

Extract colors from an image like a human would do.
thephpleague.com
MIT License
1.3k stars 159 forks source link

Call to undefined function #47

Closed marijang closed 7 years ago

marijang commented 7 years ago

FatalThrowableError in Palette.php line 54: Call to undefined function League\ColorExtractor\imagecreatefromstring()

marijang commented 7 years ago

and how to implement into laravel 5.3

MatTheCat commented 7 years ago

FatalThrowableError in Palette.php line 54: Call to undefined function League\ColorExtractor\imagecreatefromstring()

How do you have managed to install it without GD?

and how to implement into laravel 5.3

Whatever the framework you just have to instanciate one or two classes.

marijang commented 7 years ago

I have php7 on centos yum install yum install php70w-gd

marijang commented 7 years ago

ok i got it thanks:D

MatTheCat commented 7 years ago

Well I don't see how you could have GD enabled without having imagecreatefromstring.

What do

composer show -p | grep gd

and

php -m | grep gd

show?

mpoppell commented 6 years ago

I'd say he did what I just did and forgot to restart php after enabling gd. Just for future ref.