*/ 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/ZT68_O8X5hzzNUEfQH5q2qirGyDr-fur.jpeg', 's' => '62329d7107953175eec6c86b6feaa819', ];