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 a single-colored logo #14

Closed leolabs closed 10 years ago

leolabs commented 10 years ago

Basically, I use your script to extract the 5 most used colors from a logo the the user can upload to my server. It's working fine with multi-colored images but takes more than 60 seconds for single or double-colored images.

Works fine: logo-bs-multimedia

Takes longer than 60 seconds: logo-haarpunkt

MatTheCat commented 10 years ago

Thanks, I'll take a look. Nice avatar by the way.

MatTheCat commented 10 years ago

Should be fixed by 0011f7449183ccdd133b3b6e19760daeb6f1e0c3.

leolabs commented 10 years ago

Thanks! It's working almost perfectly now.