material-palette-php
material-palette-php copied to clipboard
Performance?
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?
aligned