ColorThief\Image\Adapter\ImagickImageAdapter::load PHP Method

load() public method

public load ( $resource )
    public function load($resource)
    {
        if (!$resource instanceof Imagick) {
            throw new \InvalidArgumentException("Passed variable is not an instance of Imagick");
        }
        parent::load($resource);
    }