ILIAS
release_8 Revision v8.23
|
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) |
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.
References escapeShellArg(), and execConvert().
Referenced by ilCertificateUtilHelper\convertImage(), ilMediaItem\copyOriginal(), assSingleChoice\generateThumbForFile(), assMultipleChoice\generateThumbForFile(), assKprimChoice\generateThumbForFile(), assOrderingQuestion\generateThumbForFile(), assMatchingQuestion\generateThumbForFile(), assOrderingQuestionImport\handleUploadedFile(), ilObjMediaObject\makeThumbnail(), assMatchingQuestion\setImageFile(), assOrderingQuestion\storeImageFile(), assOrderingQuestion\updateImageFile(), ilObjCertificateSettings\uploadBackgroundImage(), and ilObjMediaObject\uploadVideoPreviewPic().
|
static |
Definition at line 61 of file class.ilShellUtil.php.
Referenced by convertImage(), ilPersonalProfileGUI\convertUserPicture(), ilPreviewRenderer\createPreviewImage(), ilExSubmission\downloadAllAssignmentFiles(), ilExSubmission\downloadMultipleFiles(), ilFFmpeg\extractImage(), ilWkhtmlToPdfConfig\getCheckboxCheckedSvgArgument(), ilWkhtmlToPdfConfig\getCheckboxSvgArgument(), ilWkhtmlToPdfConfig\getFooterArgument(), ilWkhtmlToPdfConfig\getHeaderArgument(), ilWkhtmlToPdfConfig\getMarginArgument(), ilWkhtmlToPdfConfig\getPageSizeArgument(), ilWkhtmlToPdfConfig\getRadioButtonCheckedSvgArgument(), ilWkhtmlToPdfConfig\getRadioButtonSvgArgument(), ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilGhostscriptRenderer\renderImages(), resizeImage(), ilVirusScannerAntiVir\scanFile(), ilVirusScannerSophos\scanFile(), ilVirusScannerICapClient\scanFile(), ilVirusScannerClamAV\scanFile(), ilFileUtils\unzip(), ilObjPortfolioBase\uploadImage(), ilObjBlog\uploadImage(), ilObjPoll\uploadImage(), ilObjUserGUI\uploadUserPictureObject(), ilObjMediaObject\uploadVideoPreviewPic(), and ilFileUtils\zip().
|
static |
Definition at line 93 of file class.ilShellUtil.php.
Referenced by ilVirusScannerAntiVir\scanFile(), ilVirusScannerSophos\scanFile(), ilVirusScannerICapClient\scanFile(), ilVirusScannerClamAV\scanFile(), ilObjPoll\uploadImage(), and ilWkhtmlToPdfConfigFormGUI\validateForm().
|
static |
execute convert command
string | $args |
Definition at line 210 of file class.ilShellUtil.php.
References execQuoted().
Referenced by ilObjUser\_uploadPersonalPicture(), ilLTIConsumeProviderIcon\convert(), convertImage(), ilPersonalProfileGUI\convertUserPicture(), ilObjectTileImage\delete(), resizeImage(), ilObjPortfolioBase\uploadImage(), ilObjBlog\uploadImage(), ilObjUserGUI\uploadUserPictureObject(), and ilObjMediaObject\uploadVideoPreviewPic().
|
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(), ilVirusScannerICapClient\scanFile(), ilVirusScannerClamAV\scanFile(), ilFileUtils\unzip(), ilObjPoll\uploadImage(), and ilFileUtils\zip().
|
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 ilObjUser\_uploadPersonalPicture(), ilPersonalProfileGUI\convertUserPicture(), ilObjUserGUI\uploadUserPictureObject(), and ilObjMediaObject\uploadVideoPreviewPic().
|
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().
Referenced by ilObjMediaObject\_resizeImage(), and ILIAS\Style\Content\ImageManager\resizeImage().