getProp("src"); if (!$src || !\file_exists($src)) { return; } if (!$this->image) { $data = file_get_contents($src); $this->image = imagecreatefromstring($data); } $sx = imagesx($this->image); $sy = imagesy($this->image); imagecopyresampled($gd, $this->image, $x, $y, 0, 0, $width, $height, $sx, $sy); } }