29 private const SUPPORTED_FORMATS =
"jpg,jpeg,jp2,png,gif,bmp,tif,tiff,cur,ico,pict,tga,psd";
42 if (!isset(self::$supported_formats)) {
43 self::$supported_formats = self::evaluateSupportedFileFormats();
46 return self::$supported_formats;
56 return explode(
",", self::SUPPORTED_FORMATS) ?? [];
68 $filepath = $obj->getFile();
70 $isTemporary = $tmpPath !== $filepath;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static array $supported_formats
getSupportedFileFormats()
Gets an array containing the file formats that are supported by the renderer.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareFileForExec(string $filepath)
Checks whether the specified file path can be used with exec() commands.
static evaluateSupportedFileFormats()
Evaluates the supported file formats.
renderImages(\ilObject $obj)
Renders the specified object into images.