Preview renderer class that is able to create previews from images by using ImageMagick.
More...
|
const | SUPPORTED_FORMATS = "jpg,jpeg,jp2,png,gif,bmp,tif,tiff,cur,ico,pict,tga,psd" |
|
Preview renderer class that is able to create previews from images by using ImageMagick.
- Author
- Stefan Born stefa.nosp@m.n.bo.nosp@m.rn@ph.nosp@m.zh.c.nosp@m.h
- Version
- $Id$
Definition at line 14 of file class.ilImageMagickRenderer.php.
◆ evaluateSupportedFileFormats()
static ilImageMagickRenderer::evaluateSupportedFileFormats |
( |
| ) |
|
|
static |
Evaluates the supported file formats.
- Returns
- array An array containing the supported file formats.
Definition at line 41 of file class.ilImageMagickRenderer.php.
43 $formats = explode(
",", self::SUPPORTED_FORMATS);
◆ getSupportedFileFormats()
ilImageMagickRenderer::getSupportedFileFormats |
( |
| ) |
|
Gets an array containing the file formats that are supported by the renderer.
- Returns
- array An array containing the supported file formats.
Definition at line 27 of file class.ilImageMagickRenderer.php.
30 if (self::$supported_formats == null)
31 self::$supported_formats = self::evaluateSupportedFileFormats();
33 return self::$supported_formats;
◆ renderImages()
ilImageMagickRenderer::renderImages |
( |
|
$obj | ) |
|
|
protected |
Renders the specified object into images.
The images do not need to be of the preview image size.
- Parameters
-
ilObjFile | $obj | The object to create images from. |
- Returns
- array An array of ilRenderedImage containing the absolute file paths to the images.
Definition at line 54 of file class.ilImageMagickRenderer.php.
References array, and ilFilePreviewRenderer\prepareFileForExec().
56 $filepath = $obj->getFile();
58 $isTemporary = $tmpPath != $filepath;
prepareFileForExec($filepath)
Checks whether the specified file path can be used with exec() commands.
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.
◆ $supported_formats
ilImageMagickRenderer::$supported_formats = null |
|
staticprivate |
◆ SUPPORTED_FORMATS
const ilImageMagickRenderer::SUPPORTED_FORMATS = "jpg,jpeg,jp2,png,gif,bmp,tif,tiff,cur,ico,pict,tga,psd" |
The documentation for this class was generated from the following file: