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

cpu Usage 20-30%

Mr-houzi opened this issue · comments

cpu Usage 20-30%,How to solve?

Extracting colors is a resource-intensive process as we must check each pixel and then perform a bunch of complex math to get the results. Unfortunately there's not much we can do about this, and 20-30% usage during execution isn't actually too bad.

If you (or anyone else) have ideas for performance improvements please feel free to submit a PR!