|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilShellUtil: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) |
| Compare convert version numbers. More... | |
| static | getConvertCmd () |
| get convert command More... | |
| static | convertImage (string $a_from, string $a_to, string $a_target_format="", string $a_geometry="", string $a_background_color="") |
| convert image More... | |
| 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 |
convert image
| string | $a_from | source file |
| string | $a_to | target file |
| string | $a_target_format | target image file format |
Definition at line 175 of file class.ilShellUtil.php.
Referenced by ilMediaItem\copyOriginal(), assKprimChoice\generateThumbForFile(), assMatchingQuestion\generateThumbForFile(), assMultipleChoice\generateThumbForFile(), assOrderingQuestion\generateThumbForFile(), assSingleChoice\generateThumbForFile(), assOrderingQuestionImport\handleUploadedFile(), assMatchingQuestion\setImageFile(), assOrderingQuestion\storeImageFile(), assOrderingQuestion\updateImageFile(), and ilObjCertificateSettings\uploadBackgroundImage().
Here is the caller graph for this function:
|
static |
Definition at line 61 of file class.ilShellUtil.php.
Referenced by ilPersonalProfileGUI\convertUserPicture(), ilPreviewRenderer\createPreviewImage(), ilWkhtmlToPdfConfig\getCheckboxCheckedSvgArgument(), ilWkhtmlToPdfConfig\getCheckboxSvgArgument(), ilWkhtmlToPdfConfig\getFooterArgument(), ilWkhtmlToPdfConfig\getHeaderArgument(), ilWkhtmlToPdfConfig\getMarginArgument(), ilWkhtmlToPdfConfig\getPageSizeArgument(), ilWkhtmlToPdfConfig\getRadioButtonCheckedSvgArgument(), ilWkhtmlToPdfConfig\getRadioButtonSvgArgument(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilGhostscriptRenderer\renderImages(), ilVirusScannerAntiVir\scanFile(), ilVirusScannerClamAV\scanFile(), ilVirusScannerICapClient\scanFile(), ilVirusScannerSophos\scanFile(), ilObjBlog\uploadImage(), ilObjPoll\uploadImage(), and ilObjUserGUI\uploadUserPictureObject().
Here is the caller graph for this function:
|
static |
Definition at line 93 of file class.ilShellUtil.php.
Referenced by ilVirusScannerAntiVir\scanFile(), ilVirusScannerClamAV\scanFile(), ilVirusScannerICapClient\scanFile(), ilVirusScannerSophos\scanFile(), ilObjPoll\uploadImage(), and ilWkhtmlToPdfConfigFormGUI\validateForm().
Here is the caller graph for this function:
|
static |
execute convert command
| string | $args |
Definition at line 210 of file class.ilShellUtil.php.
References execQuoted().
Referenced by ilLTIConsumeProviderIcon\convert(), ilPersonalProfileGUI\convertUserPicture(), ilObjBlog\uploadImage(), and ilObjUserGUI\uploadUserPictureObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 109 of file class.ilShellUtil.php.
References $DIC, and ilUtil\isWindows().
Referenced by ilPreviewRenderer\createPreviewImage(), ilGitInformation\detect(), ilFFmpeg\exec(), execConvert(), ilCountPDFPages\extractAmountOfPagesByPath(), isConvertVersionAtLeast(), ilGhostscriptRenderer\renderImages(), ilWkhtmlToPdfRenderer\runCommandLine(), ilVirusScannerAntiVir\scanFile(), ilVirusScannerClamAV\scanFile(), ilVirusScannerICapClient\scanFile(), and ilObjPoll\uploadImage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get convert command
Definition at line 161 of file class.ilShellUtil.php.
|
static |
Compare convert version numbers.
| string | $a_version | w.x.y-z |
Definition at line 142 of file class.ilShellUtil.php.
References $version, and execQuoted().
Referenced by ilPersonalProfileGUI\convertUserPicture(), and ilObjUserGUI\uploadUserPictureObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.
Referenced by ILIAS\Style\Content\ImageManager\resizeImage().
Here is the caller graph for this function: