TYPO3
7.6
|
Public Member Functions | |
main () | |
errorGif ($l1, $l2, $l3) | |
fontGif ($font) | |
Public Attributes | |
$outdir = 'typo3temp/' | |
$output = '' | |
$sizeDefault = '64x64' | |
$imageList | |
$image | |
$size | |
$mTime = 0 | |
Class for generating a thumbnail from the input parameters given to the script
Input GET var, &file: relative or absolute reference to an imagefile. WILL be validated against PATH_site / lockRootPath Input GET var, &size: integer-values defining size of thumbnail, format '[int]' or '[int]x[int]'
Relative paths MUST BE the first two characters ONLY: eg: '../dir/file.gif', otherwise it is expect to be absolute
Definition at line 33 of file ThumbnailView.php.
errorGif | ( | $l1, | |
$l2, | |||
$l3 | |||
) |
Creates error image based on gfx/notfound_thumb.png Requires GD lib enabled, otherwise it will exit with the three textstrings outputted as text. Outputs the image stream to browser and exits!
string | $l1 | Text line 1 |
string | $l2 | Text line 2 |
string | $l3 | Text line 3 |
Definition at line 261 of file ThumbnailView.php.
References $GLOBALS.
Referenced by ThumbnailView\main().
fontGif | ( | $font | ) |
Creates a font-preview thumbnail. This means a PNG/GIF file with the text "AaBbCc...." set with the font-file given as input and in various sizes to show how the font looks Requires GD lib enabled. Outputs the image stream to browser and exits!
string | $font | The filepath to the font file (absolute, probably) |
Definition at line 312 of file ThumbnailView.php.
References $GLOBALS, and GeneralUtility\freetypeDpiComp().
Referenced by ThumbnailView\main().
main | ( | ) |
Create the thumbnail Will exit before return if all is well.
Definition at line 176 of file ThumbnailView.php.
References $GLOBALS, ThumbnailView\$outdir, ThumbnailView\$size, ThumbnailView\$sizeDefault, elseif, ThumbnailView\errorGif(), CommandUtility\escapeShellArgument(), AbstractFile\FILETYPE_IMAGE, GeneralUtility\fixPermissions(), ThumbnailView\fontGif(), MathUtility\forceIntegerInRange(), GeneralUtility\imageMagickCommand(), GeneralUtility\inList(), and Permission\PAGE_EDIT.
$image |
Definition at line 64 of file ThumbnailView.php.
$imageList |
Definition at line 57 of file ThumbnailView.php.
$mTime = 0 |
Definition at line 78 of file ThumbnailView.php.
$outdir = 'typo3temp/' |
Definition at line 40 of file ThumbnailView.php.
Referenced by ThumbnailView\main().
$output = '' |
Definition at line 45 of file ThumbnailView.php.
$size |
Definition at line 71 of file ThumbnailView.php.
Referenced by ThumbnailView\main().
$sizeDefault = '64x64' |
Definition at line 50 of file ThumbnailView.php.
Referenced by ThumbnailView\main().