TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\View\ThumbnailView Class Reference

Public Member Functions

 main ()
 
 errorGif ($l1, $l2, $l3)
 
 fontGif ($font)
 

Public Attributes

 $outdir = 'typo3temp/'
 
 $output = ''
 
 $sizeDefault = '64x64'
 
 $imageList
 
 $image
 
 $size
 
 $mTime = 0
 

Detailed Description

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

Deprecated:
since TYPO3 CMS 7, will be removed with TYPO3 CMS 8, use the corresponding Resource objects and Processing functionality

Definition at line 33 of file ThumbnailView.php.

Member Function Documentation

◆ errorGif()

TYPO3\CMS\Backend\View\ThumbnailView::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!

Parameters
string$l1Text line 1
string$l2Text line 2
string$l3Text line 3
Returns
void

Definition at line 261 of file ThumbnailView.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\extPath().

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ fontGif()

TYPO3\CMS\Backend\View\ThumbnailView::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!

Parameters
string$fontThe filepath to the font file (absolute, probably)
Returns
void

Definition at line 312 of file ThumbnailView.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\freetypeDpiComp().

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ main()

Member Data Documentation

◆ $image

TYPO3\CMS\Backend\View\ThumbnailView::$image

Definition at line 64 of file ThumbnailView.php.

◆ $imageList

TYPO3\CMS\Backend\View\ThumbnailView::$imageList

Definition at line 57 of file ThumbnailView.php.

◆ $mTime

TYPO3\CMS\Backend\View\ThumbnailView::$mTime = 0

Definition at line 78 of file ThumbnailView.php.

◆ $outdir

TYPO3\CMS\Backend\View\ThumbnailView::$outdir = 'typo3temp/'

Definition at line 40 of file ThumbnailView.php.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ $output

TYPO3\CMS\Backend\View\ThumbnailView::$output = ''

Definition at line 45 of file ThumbnailView.php.

◆ $size

TYPO3\CMS\Backend\View\ThumbnailView::$size

Definition at line 71 of file ThumbnailView.php.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().

◆ $sizeDefault

TYPO3\CMS\Backend\View\ThumbnailView::$sizeDefault = '64x64'

Definition at line 50 of file ThumbnailView.php.

Referenced by TYPO3\CMS\Backend\View\ThumbnailView\main().