TYPO3  7.6
Public Member Functions | Public Attributes | List of all members
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 (   $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.

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!

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

Definition at line 312 of file ThumbnailView.php.

References $GLOBALS, and GeneralUtility\freetypeDpiComp().

Referenced by ThumbnailView\main().

main ( )

Member Data Documentation

$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().