*/ public function newImage($width, $height, $background = null) { // create empty resource $core = imagecreatetruecolor($width, $height); $image = new \Intervention\Image\Image(new static, $core); // set background color $background = new Color($background); imagefill($image->getCore(), 0, 0, $background->getInt()); return $image; } /** * Reads given string into color object * * @param string $value * @return AbstractColor
$_GET = [ 'r' => 'glide/index', 'path' => '1/kABdXG18cTcRv9N9CwGyIJwnNage7MfV.jpeg', 's' => '09aea03bf7d47138ad28328ddb054bf6', ];