mirror of
https://github.com/Intervention/image.git
synced 2025-08-20 20:51:20 +02:00
bugfix
This commit is contained in:
@@ -1738,18 +1738,15 @@ class Image
|
|||||||
|
|
||||||
// set resource
|
// set resource
|
||||||
switch ($this->type) {
|
switch ($this->type) {
|
||||||
case IMG_PNG:
|
case IMAGETYPE_PNG:
|
||||||
case 3:
|
|
||||||
$this->resource = imagecreatefrompng($path);
|
$this->resource = imagecreatefrompng($path);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IMG_JPG:
|
case IMAGETYPE_JPEG:
|
||||||
case 2:
|
|
||||||
$this->resource = imagecreatefromjpeg($path);
|
$this->resource = imagecreatefromjpeg($path);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IMG_GIF:
|
case IMAGETYPE_GIF:
|
||||||
case 1:
|
|
||||||
$this->resource = imagecreatefromgif($path);
|
$this->resource = imagecreatefromgif($path);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user