1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01:00
This commit is contained in:
Oliver Vogel 2013-02-02 11:58:12 +01:00
parent 4c69a1e2dc
commit b0ad50b28e

View File

@ -275,7 +275,7 @@ class Image
*/
public function insert($file, $pos_x = 0, $pos_y = 0)
{
$obj = is_a($file, 'Intervention\Image') ? $file : (new Image($file));
$obj = is_a($file, 'Intervention\Image\Image') ? $file : (new Image($file));
imagecopy($this->resource, $obj->resource, $pos_x, $pos_y, 0, 0, $obj->width, $obj->height);
return $this;