ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilMediaImageUtil.php
Go to the documentation of this file.
1
<?php
2
24
class
ilMediaImageUtil
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
}
ilMediaImageUtil
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilMediaImageUtil.php:24
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
ilMediaImageUtil\getImageSize
static getImageSize(string $a_location)
Get image size from location.
Definition:
class.ilMediaImageUtil.php:30
Exception
components
ILIAS
MediaObjects
classes
class.ilMediaImageUtil.php
Generated on Sun Aug 31 2025 23:03:20 for ILIAS by
1.8.13 (using
Doxyfile
)