1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-20 20:51:20 +02:00
This commit is contained in:
Oliver Vogel
2013-12-03 17:33:48 +01:00
parent 2bb7380b5c
commit 2f1a10ef0a

View File

@@ -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;