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

load() public method

public load ( $resource )
    public function load($resource)
    {
        if (!is_resource($resource) || get_resource_type($resource) != 'gd') {
            throw new \InvalidArgumentException("Passed variable is not a valid GD resource");
        }
        parent::load($resource);
    }