color-thief-php
color-thief-php copied to clipboard
Grabs the dominant color or a representative color palette from an image. Uses PHP and GD, Imagick or Gmagick.
- **PHP:** 7.3 - **OS:** Comparing MacOS vs Ubuntu Docker Image Given this image:  I'm getting different colours between running locally and in our testing environment. On my Mac,...
Update file CMap.php:28 public function palette() { $total = array_sum($this->vboxes->map(function ($x) { return $x['vbox']->count(); })); return $this->vboxes->map(function ($vb) use ($total) { return array($vb['color'], intval($vb['vbox']->count() / floatval($total) * 100)); }); }
Would it be possible to get some sort of dominance percentage for each color returned in the palette, so I can choose the second most dominant color for example?
It would be great if the $quality could also be absolute. I'd like to set it to a static value like _10000_ meaning it would take the same time and...
first of all: thank you for this lib! i experienced a freezing in one of my applictions when calling `\ColorThief\ColorThief::getColor($absolutePath, $quality)` after some debugging i found out that ColorThief **did...
This code works on the live server but on the local server giving me this error, even if I give 777 permission to file, still get the same error. The...
Our hosting provider scans their servers for known exploits from time to time. warned us about a know exploit and blocked access to the following file within color-thief-php: `src/ColorThief/Image/Adapter/AbstractAdapter.php` The...
Current implementation disregards all the colors that are rgb(250, 250, 250) or brighter (see THRESHOLD_WHITE variable). This can be useful for some users. Let's say you want to get a...
Feature: Add libvips support for image processing. https://github.com/libvips/libvips https://github.com/libvips/php-vips It would be convenient, because now I have to use GD or Imagick to work with Color Thief PHP, while the...