1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-20 12:41:23 +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
switch ($this->type) {
case IMG_PNG:
case 3:
case IMAGETYPE_PNG:
$this->resource = imagecreatefrompng($path);
break;
case IMG_JPG:
case 2:
case IMAGETYPE_JPEG:
$this->resource = imagecreatefromjpeg($path);
break;
case IMG_GIF:
case 1:
case IMAGETYPE_GIF:
$this->resource = imagecreatefromgif($path);
break;