Skip to content

0.4.0

Latest
Compare
Choose a tag to compare
@colinodell colinodell released this 24 Sep 16:10
· 1 commit to master since this release
0.4.0
21fcac6

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