ImagePalette
ImagePalette copied to clipboard
Extracts colors from an image and generates a color palette against a whitelist of colors.
Hi, $image = "sample.png"; // this image have only color ` #CCCCCC ` and bg color `#fff` // initiate with image $palette = new ImagePalette( $image); // get the prominent...
# Improvement This PR adds an addition constructor param to change the predefined color pallet (=whitelist). This is useful if you need a more detailled color pallet.
You may want to use `exif_imagetype` instead of path extension to detect the type of the image. It just works better across all platform.
Hi, This package is amazing and I'm willing to use it, To update this package to laravel 5 I just deleted `boot()` function from `ImagePaletteServiceProvider` file if you want to...
This makes it compatible with the current latest version of laravel, which removed the share method from the application container.
Hello, I added this function to retrieve how many pixels are associated to each color of the white-list. can be useful when coding a color search engine, for exemple. I...
user needs to run 'composer update' after adding to their composer file