ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMediaImageUtil.php
Go to the documentation of this file.
1<?php
2
25{
30 public static function getImageSize(string $a_location): ?array
31 {
32 try {
33 $size = getimagesizefromstring(file_get_contents($a_location));
34 } catch (Exception $e) {
35 $size = false;
36 }
37
38 if (!isset($size) || $size === false) {
39 $size = [0,0];
40 }
41 return $size;
42 }
43}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImageSize(string $a_location)
Get image size from location.