ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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:25
ilMediaImageUtil\getImageSize
static getImageSize(string $a_location)
Get image size from location.
Definition:
class.ilMediaImageUtil.php:30
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
components
ILIAS
MediaObjects
classes
class.ilMediaImageUtil.php
Generated on Sat Oct 18 2025 23:03:24 for ILIAS by
1.9.4 (using
Doxyfile
)