Grabs the dominant color or a representative color palette from an image. Uses PHP and GD, Imagick or Gmagick.
Bug fix
New features
ColorThief\Color
class).Bug fix
getPalette()
does not always return the requested amount of colors (see #5).Breaking changes
ColorThief\Exception\Exception
. Migrating from 1.x may require tweaking exception handling in calling code to avoid unhandled exceptions or preserve error handling logic. See 1bf90f40 for details.Noticeable changes