35 $name = get_class($this);
37 if (strpos(
$name,
"il") === 0) {
41 if (strpos(
$name,
"Renderer") === (strlen(
$name) - 8)) {
55 return !is_file(
"./Services/Preview/classes/class." . get_class($this) .
".php");
74 return in_array(
$preview->getObjType(), $this->getSupportedRepositoryTypes());
93 if (is_array($images) && count($images) > 0) {
95 foreach ($images as $idx => $image) {
98 $image->getImagePath(),
99 sprintf(
$preview->getFilePathFormat(), $idx + 1)
103 if ($image->isTemporary()) {
129 $resizeArg = $imgSize .
"x" . $imgSize . (
ilUtil::isWindows() ?
"^" :
"\\") .
">";
133 "%s -background white -flatten -resize %s -quality %d -sharpen 0x0.5 %s",
142 return is_file($dest_img_path);
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...
renderImages(\ilObject $obj)
Renders the specified object into images.
supports(\ilPreview $preview)
Determines whether the specified preview object is supported by the renderer.
getImageQuality()
Gets the quality (compression) of the preview images (1-100).
getName()
Gets the name of the renderer.
getSupportedRepositoryTypes()
Gets an array containing the repository types (e.g.
render(\ilPreview $preview, \ilObject $obj, bool $async)
Creates the preview of the specified preview object.
createPreviewImage(string $src_img_path, string $dest_img_path)
Creates a preview image path from the specified source image.
getMaximumNumberOfPreviews()
Gets the maximum number of preview pictures per object.
isPlugin()
Determines whether the renderer is a plugin or a built in one.
getImageSize()
Gets the size of the preview images in pixels.
static getImageSize()
Gets the size of the preview images in pixels.
static getMaximumPreviews()
Gets the maximum number of preview pictures per object.
static getImageQuality()
Gets the quality (compression) of the preview images (1-100).
const RENDER_STATUS_FAILED
const RENDER_STATUS_CREATED
const RENDER_STATUS_PENDING
static escapeShellArg(string $a_arg)
static execQuoted(string $cmd, ?string $args=null)
static now()
Return current timestamp in Y-m-d H:i:s format.