4 include_once(
"./Services/Preview/classes/class.ilFilePreviewRenderer.php");
17 const SUPPORTED_FORMATS =
"jpg,jpeg,jp2,png,gif,bmp,tif,tiff,cur,ico,pict,tga,psd";
30 if (self::$supported_formats == null) {
31 self::$supported_formats = self::evaluateSupportedFileFormats();
34 return self::$supported_formats;
44 $formats = explode(
",", self::SUPPORTED_FORMATS);
57 $filepath = $obj->getFile();
59 $isTemporary = $tmpPath != $filepath;
Preview renderer class that is able to create previews from images by using ImageMagick.
prepareFileForExec($filepath)
Checks whether the specified file path can be used with exec() commands.
Abstract parent class for all file preview renderer classes.
static $supported_formats
getSupportedFileFormats()
Gets an array containing the file formats that are supported by the renderer.
renderImages($obj)
Renders the specified object into images.
Represents an image that was created from a preview renderer and that can be further processed to cre...
Create styles array
The data for the language used.
static evaluateSupportedFileFormats()
Evaluates the supported file formats.