ILIAS
trunk Revision v11.0_alpha-1862-g4e205cb56d4
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | resizeImage (string $a_from, string $a_to, int $a_width, int $a_height, bool $a_constrain_prop=false) |
resize image More... | |
static | escapeShellArg (string $a_arg) |
static | escapeShellCmd (string $a_arg) |
static | execQuoted (string $cmd, ?string $args=null) |
static | isConvertVersionAtLeast (string $a_version) |
static | getConvertCmd () |
static | convertImage (string $a_from, string $a_to, string $a_target_format="", string $a_geometry="", string $a_background_color="") |
static | execConvert (string $args) |
execute convert command More... | |
Static Protected Member Functions | |
static | processConvertVersion (string $a_version) |
Parse convert version string, e.g. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Util class various functions, usage as namespace
Definition at line 32 of file class.ilShellUtil.php.
|
static |
Definition at line 161 of file class.ilShellUtil.php.
References escapeShellArg(), and execConvert().
Referenced by assOrderingQuestion\generateThumbForFile(), assMatchingQuestion\generateThumbForFile(), assOrderingQuestionImport\handleUploadedFile(), assMatchingQuestion\setImageFile(), assOrderingQuestion\storeImageFile(), and assOrderingQuestion\updateImageFile().
|
static |
Definition at line 61 of file class.ilShellUtil.php.
Referenced by convertImage(), ilFFmpeg\extractImage(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), resizeImage(), ilVirusScannerAntiVir\scanFile(), ilVirusScannerSophos\scanFile(), ilVirusScannerICapClient\scanFile(), and ilVirusScannerClamAV\scanFile().
|
static |
Definition at line 93 of file class.ilShellUtil.php.
Referenced by ilVirusScannerAntiVir\scanFile(), ilVirusScannerSophos\scanFile(), ilVirusScannerICapClient\scanFile(), and ilVirusScannerClamAV\scanFile().
|
static |
execute convert command
string | $args |
Definition at line 196 of file class.ilShellUtil.php.
References execQuoted().
Referenced by ilLTIConsumeProviderIcon\convert(), convertImage(), and resizeImage().
|
static |
Definition at line 109 of file class.ilShellUtil.php.
References $DIC, and ilUtil\isWindows().
Referenced by ilGitInformation\detect(), execConvert(), ilCountPDFPages\extractAmountOfPagesByPath(), isConvertVersionAtLeast(), ilVirusScannerAntiVir\scanFile(), ilVirusScannerICapClient\scanFile(), and ilVirusScannerClamAV\scanFile().
|
static |
Definition at line 153 of file class.ilShellUtil.php.
|
static |
Definition at line 139 of file class.ilShellUtil.php.
References $version, and execQuoted().
|
staticprotected |
Parse convert version string, e.g.
6.3.8-3, into integer
string | $a_version | w.x.y-z |
Definition at line 78 of file class.ilShellUtil.php.
References $version.
|
static |
resize image
string | $a_from | source file |
string | $a_to | target file |
int | $a_width | target width |
int | $a_height | target height |
Definition at line 44 of file class.ilShellUtil.php.
References escapeShellArg(), and execConvert().