*/ 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/I2PM7P_hu4W_iwEqH1gCb42GbMyF5maw.jpeg', 's' => 'c5c83d0874fd9a8b8a07930f97ff0945', ];