| @@ 537-541 (lines=5) @@ | ||
| 534 | } |
|
| 535 | break; |
|
| 536 | case IMAGETYPE_JPEG: |
|
| 537 | if (imagetypes() & IMG_JPG) { |
|
| 538 | $this->resource = imagecreatefromjpeg($imagePath); |
|
| 539 | } else { |
|
| 540 | $this->logger->debug('OC_Image->loadFromFile, JPG images not supported: ' . $imagePath, array('app' => 'core')); |
|
| 541 | } |
|
| 542 | break; |
|
| 543 | case IMAGETYPE_PNG: |
|
| 544 | if (imagetypes() & IMG_PNG) { |
|
| @@ 554-558 (lines=5) @@ | ||
| 551 | } |
|
| 552 | break; |
|
| 553 | case IMAGETYPE_XBM: |
|
| 554 | if (imagetypes() & IMG_XPM) { |
|
| 555 | $this->resource = imagecreatefromxbm($imagePath); |
|
| 556 | } else { |
|
| 557 | $this->logger->debug('OC_Image->loadFromFile, XBM/XPM images not supported: ' . $imagePath, array('app' => 'core')); |
|
| 558 | } |
|
| 559 | break; |
|
| 560 | case IMAGETYPE_WBMP: |
|
| 561 | if (imagetypes() & IMG_WBMP) { |
|
| @@ 561-565 (lines=5) @@ | ||
| 558 | } |
|
| 559 | break; |
|
| 560 | case IMAGETYPE_WBMP: |
|
| 561 | if (imagetypes() & IMG_WBMP) { |
|
| 562 | $this->resource = imagecreatefromwbmp($imagePath); |
|
| 563 | } else { |
|
| 564 | $this->logger->debug('OC_Image->loadFromFile, WBMP images not supported: ' . $imagePath, array('app' => 'core')); |
|
| 565 | } |
|
| 566 | break; |
|
| 567 | case IMAGETYPE_BMP: |
|
| 568 | $this->resource = $this->imagecreatefrombmp($imagePath); |
|