color-extractor

Extract colors from an image like a human would do.

MIT License

Downloads
3.2M
Stars
1.3K
Committers
15

Bot releases are visible (Hide)

color-extractor - 0.4.0 Latest Release

Published by colinodell about 2 years ago

Added

  • Added support for PHP 8.x
  • Added new Palette::fromUrl() method with optional support for curl
  • Added new Palette::fromContents() method
  • Added return types to Palette::count() and Palette:getIterator()

Changed

  • Palette::fromFilename() now throws InvalidArgumentException if the target file doesn't exist or can't be read

Fixed

  • Fixed Palette:getColorCount() erroring when the given color doesn't exist in the image
  • Fixed ColorExtractor erroring when no interesting colors exist

Removed

  • Dropped support for PHP <= 7.2