mirror of
https://github.com/Intervention/image.git
synced 2025-08-06 22:06:36 +02:00
bugfix
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user