@@ 462-468 (lines=7) @@ | ||
459 | } |
|
460 | break; |
|
461 | case IMAGETYPE_JPEG: |
|
462 | if (imagetypes() & IMG_JPG) { |
|
463 | $this->resource = imagecreatefromjpeg($imagePath); |
|
464 | } else { |
|
465 | OC_Log::write('core', |
|
466 | 'OC_Image->loadFromFile, JPG images not supported: '.$imagePath, |
|
467 | OC_Log::DEBUG); |
|
468 | } |
|
469 | break; |
|
470 | case IMAGETYPE_PNG: |
|
471 | if (imagetypes() & IMG_PNG) { |
|
@@ 483-489 (lines=7) @@ | ||
480 | } |
|
481 | break; |
|
482 | case IMAGETYPE_XBM: |
|
483 | if (imagetypes() & IMG_XPM) { |
|
484 | $this->resource = imagecreatefromxbm($imagePath); |
|
485 | } else { |
|
486 | OC_Log::write('core', |
|
487 | 'OC_Image->loadFromFile, XBM/XPM images not supported: '.$imagePath, |
|
488 | OC_Log::DEBUG); |
|
489 | } |
|
490 | break; |
|
491 | case IMAGETYPE_WBMP: |
|
492 | if (imagetypes() & IMG_WBMP) { |
|
@@ 492-498 (lines=7) @@ | ||
489 | } |
|
490 | break; |
|
491 | case IMAGETYPE_WBMP: |
|
492 | if (imagetypes() & IMG_WBMP) { |
|
493 | $this->resource = imagecreatefromwbmp($imagePath); |
|
494 | } else { |
|
495 | OC_Log::write('core', |
|
496 | 'OC_Image->loadFromFile, WBMP images not supported: '.$imagePath, |
|
497 | OC_Log::DEBUG); |
|
498 | } |
|
499 | break; |
|
500 | case IMAGETYPE_BMP: |
|
501 | $this->resource = $this->imagecreatefrombmp($imagePath); |