color-thief-php icon indicating copy to clipboard operation
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.

Results 9 color-thief-php issues
Sort by recently updated
recently updated
newest added

- **PHP:** 7.3 - **OS:** Comparing MacOS vs Ubuntu Docker Image Given this image: ![image](https://user-images.githubusercontent.com/246103/59828452-f8016680-9332-11e9-8232-9463dda395b4.png) 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?

feature-request

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...

feature-request
RFC

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...

question

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-request

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...

feature-request