material-palette-php icon indicating copy to clipboard operation
material-palette-php copied to clipboard

Performance?

Open emilycestmoi opened this issue 8 years ago • 3 comments

First off, really like this tool. Thanks for putting it together.

My question concerns performance.

I am using Intervention Image with GD on a 250x 250 px image and am seeing the Palette::generate($image) method take 3 seconds for this single small image. This is on a recent i7 macbook running PHP 5.6 on MacOS. The quantize($swatches, 16) call within the PaletteGenerator->generate() method is where all the time is spent.

Is this expected?

emilycestmoi avatar Apr 22 '16 21:04 emilycestmoi

aligned

wenhuach21 avatar May 16 '24 09:05 wenhuach21