thephpleague / color-extractor

Extract colors from an image like a human would do.

Home Page:thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined function

marijang opened this issue · comments

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

and how to implement into laravel 5.3

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.

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

ok i got it thanks:D

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?

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