thephpleague / color-extractor

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

Execution takes longer than 60 seconds for logos with thin lines #15

Closed leolabs closed 10 years ago

leolabs commented 10 years ago

Using the ColorExtractor on normal images with thick lines, everything seems to work perfectly. However, when I use the Extractor in combination with logos that have thin lines, the execution seems so be stuck in an endless loop.

Works: 416bda47164c869b4a3ec3f4bf2be973

Doesn't work: 968f84cff4d81bc8fbeb13593f4aadf0

58ae36ffb5c7bf570d98c85c7e2ce211

MatTheCat commented 10 years ago

I see what's causing this, I'm working on it. Thanks again.

MatTheCat commented 10 years ago

Fixed by 687c85a816694a4503529cf4613faf6de81646c4