thephpleague / color-extractor

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

Update Client.php #21

Closed kander-zz closed 9 years ago

kander-zz commented 9 years ago

On my PHP 5.5 environment this failed due to "Call to undefined function League\ColorExtractor\imagecreatefrompng()" - the GD functions which are in the global namespace were not properly referenced. Not sure how this ever managed to work in the first place?

kander-zz commented 9 years ago

Never mind - my bad. It will work, due to fallback to global function names - not sure if we want to rely on that, though. Issue was that GD shipped with PHP5.5 on OSX Yosemite does not include PNG support.