TYPO3
7.6
|
Public Member Functions | |
init () | |
maskImageOntoImage (&$im, $conf, $workArea) | |
copyImageOntoImage (&$im, $conf, $workArea) | |
copyGifOntoGif (&$im, $cpImg, $conf, $workArea) | |
imagecopyresized (&$dstImg, $srcImg, $dstX, $dstY, $srcX, $srcY, $dstWidth, $dstHeight, $srcWidth, $srcHeight) | |
makeText (&$im, $conf, $workArea) | |
txtPosition ($conf, $workArea, $BB) | |
calcBBox ($conf) | |
addToMap ($cords, $conf) | |
calcTextCordsForMap ($cords, $offset, $conf) | |
SpacedImageTTFText (&$im, $fontSize, $angle, $x, $y, $Fcolor, $fontFile, $text, $spacing, $wordSpacing, $splitRenderingConf, $sF=1) | |
fontResize ($conf) | |
ImageTTFBBoxWrapper ($fontSize, $angle, $fontFile, $string, $splitRendering, $sF=1) | |
ImageTTFTextWrapper ($im, $fontSize, $angle, $x, $y, $color, $fontFile, $string, $splitRendering, $sF=1) | |
splitString ($string, $splitRendering, $fontSize, $fontFile) | |
calcWordSpacing ($conf, $scaleFactor=1) | |
getTextScalFactor ($conf) | |
makeOutline (&$im, $conf, $workArea, $txtConf) | |
circleOffset ($distance, $iterations) | |
makeEmboss (&$im, $conf, $workArea, $txtConf) | |
makeShadow (&$im, $conf, $workArea, $txtConf) | |
makeBox (&$im, $conf, $workArea) | |
makeEllipse (&$im, array $conf, array $workArea) | |
makeEffect (&$im, $conf) | |
IMparams ($setup) | |
adjust (&$im, $conf) | |
crop (&$im, $conf) | |
scale (&$im, $conf) | |
setWorkArea ($workArea) | |
autolevels (&$im) | |
outputLevels (&$im, $low, $high, $swap= '') | |
inputLevels (&$im, $low, $high) | |
IMreduceColors ($file, $cols) | |
prependAbsolutePath ($fontFile) | |
v5_sharpen ($factor) | |
v5_blur ($factor) | |
randomName () | |
applyOffset ($cords, $OFFSET) | |
convertColor ($string) | |
recodeString ($string) | |
singleChars ($theText, $returnUnicodeNumber=false) | |
objPosition ($conf, $workArea, $BB) | |
imageMagickConvert ($imagefile, $newExt= '', $w= '', $h= '', $params= '', $frame= '', $options=array(), $mustCreate=false) | |
getImageDimensions ($imageFile) | |
getImageScale ($info, $w, $h, $options) | |
imageMagickIdentify ($imagefile) | |
imageMagickExec ($input, $output, $params, $frame=0) | |
combineExec ($input, $overlay, $mask, $output, $handleNegation=false) | |
checkFile ($file) | |
createTempSubDir ($dirName) | |
applyImageMagickToPHPGif (&$im, $command) | |
gif_or_jpg ($type, $w, $h) | |
output ($file) | |
destroy () | |
imgTag ($imgInfo) | |
ImageWrite ($destImg, $theImage, $quality=0) | |
imageCreateFromFile ($sourceImg) | |
hexColor ($col) | |
unifyColors (&$img, $colArr, $closest=false) | |
getTemporaryImageWithText ($filename, $textline1, $textline2, $textline3) | |
Static Public Member Functions | |
static | gifCompress ($theFile, $type) |
static | pngToGifByImagemagick ($theFile) |
static | readPngGif ($theFile, $output_png=false) |
Public Attributes | |
$noFramePrepended = 0 | |
$gifExtension = 'gif' | |
$gdlibExtensions = '' | |
$png_truecolor = false | |
$truecolorColors = 16777215 | |
$imageFileExt = 'gif,jpg,jpeg,png,tif,bmp,tga,pcx,ai,pdf' | |
$webImageExt = 'gif,jpg,jpeg,png' | |
$NO_IM_EFFECTS = '' | |
$cmds | |
$NO_IMAGE_MAGICK = '' | |
$V5_EFFECTS = 0 | |
$mayScaleUp = 1 | |
$filenamePrefix = '' | |
$imageMagickConvert_forceFileNameBody = '' | |
$dontCheckForExistingTempFile = 0 | |
$dontCompress = 0 | |
$dontUnlinkTempFiles = 0 | |
$alternativeOutputKey = '' | |
$IM_commands = array() | |
$workArea = array() | |
$tempPath = 'typo3temp/' | |
$absPrefix = '' | |
$scalecmd = '-geometry' | |
$im5fx_blurSteps = '1x2,2x2,3x2,4x3,5x3,5x4,6x4,7x5,8x5,9x5' | |
$im5fx_sharpenSteps = '1x2,2x2,3x2,2x3,3x3,4x3,3x4,4x4,4x5,5x5' | |
$pixelLimitGif = 10000 | |
$colMap | |
$csConvObj | |
$nativeCharset = '' | |
Protected Member Functions | |
renderTTFText (&$im, $fontSize, $angle, $x, $y, $color, $fontFile, $string, $splitRendering, $conf, $sF=1) | |
getWordPairsForLineBreak ($string) | |
getRenderedTextWidth ($text, $conf) | |
getBreakSpace ($conf, array $boundingBox=null) | |
generateCacheKeyForImageFile ($filePath) | |
generateStatusHashForImageFile ($filePath) | |
Protected Attributes | |
$colorspace = 'RGB' | |
$allowedColorSpaceNames | |
$saveAlphaLayer = false | |
Standard graphical functions
Class contains a bunch of cool functions for manipulating graphics with GDlib/Freetype and ImageMagick. VERY OFTEN used with gifbuilder that extends this class and provides a TypoScript API to using these functions
Definition at line 27 of file GraphicalFunctions.php.
addToMap | ( | $cords, | |
$conf | |||
) |
Adds an <area> tag to the internal variable $this->map which is used to accumulate the content for an ImageMap
array | $cords | Coordinates for a polygon image map as created by ->calcTextCordsForMap() |
array | $conf | Configuration for "imgMap." property of a TEXT GIFBUILDER object. |
Definition at line 844 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\makeText().
adjust | ( | & | $im, |
$conf | |||
) |
Implements the "ADJUST" GIFBUILDER object
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1717 of file GraphicalFunctions.php.
References GraphicalFunctions\inputLevels(), GeneralUtility\intExplode(), and GraphicalFunctions\outputLevels().
Referenced by GifBuilder\make().
applyImageMagickToPHPGif | ( | & | $im, |
$command | |||
) |
Applies an ImageMagick parameter to a GDlib image pointer resource by writing the resource to file, performing an IM operation upon it and reading back the result into the ImagePointer.
resource | $im | The image pointer (reference) |
string | $command | The ImageMagick parameters. Like effects, scaling etc. |
Definition at line 2783 of file GraphicalFunctions.php.
References GraphicalFunctions\$gifExtension, GraphicalFunctions\imageCreateFromFile(), GraphicalFunctions\imageMagickExec(), GraphicalFunctions\ImageWrite(), and GraphicalFunctions\randomName().
Referenced by GraphicalFunctions\makeEffect().
applyOffset | ( | $cords, | |
$OFFSET | |||
) |
Applies offset value to coordinated in $cords. Basically the value of key 0/1 of $OFFSET is added to keys 0/1 of $cords
array | $cords | Integer coordinates in key 0/1 |
array | $OFFSET | Offset values in key 0/1 |
Definition at line 2034 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\makeOutline(), GraphicalFunctions\makeShadow(), GraphicalFunctions\objPosition(), GraphicalFunctions\setWorkArea(), and GraphicalFunctions\txtPosition().
autolevels | ( | & | $im | ) |
Apply auto-levels to input image pointer
int | $im | GDlib Image Pointer |
Definition at line 1849 of file GraphicalFunctions.php.
calcBBox | ( | $conf | ) |
Calculates bounding box information for the TEXT GIFBUILDER object.
array | $conf | TypoScript array for the TEXT GIFBUILDER object |
Definition at line 764 of file GraphicalFunctions.php.
References GraphicalFunctions\calcWordSpacing(), elseif, GraphicalFunctions\getBreakSpace(), GraphicalFunctions\getRenderedTextWidth(), GraphicalFunctions\getTextScalFactor(), GraphicalFunctions\getWordPairsForLineBreak(), GraphicalFunctions\ImageTTFBBoxWrapper(), GraphicalFunctions\recodeString(), and GraphicalFunctions\singleChars().
Referenced by GraphicalFunctions\getBreakSpace(), and GraphicalFunctions\txtPosition().
calcTextCordsForMap | ( | $cords, | |
$offset, | |||
$conf | |||
) |
Calculating the coordinates for a TEXT string on an image map. Used in an <area> tag
array | $cords | Coordinates (from BBOX array) |
array | $offset | Offset array |
array | $conf | Configuration for "imgMap." property of a TEXT GIFBUILDER object. |
Definition at line 863 of file GraphicalFunctions.php.
References GeneralUtility\intExplode().
Referenced by GraphicalFunctions\makeText().
calcWordSpacing | ( | $conf, | |
$scaleFactor = 1 |
|||
) |
Calculates the spacing and wordSpacing values
array | $conf | TypoScript array for the TEXT GIFBUILDER object |
int | $scaleFactor | TypoScript value from eg $conf['niceText.']['scaleFactor'] |
Definition at line 1207 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\calcBBox(), GraphicalFunctions\fontResize(), and GraphicalFunctions\makeText().
checkFile | ( | $file | ) |
Returns TRUE if the input file existed
string | $file | Input file to check |
Definition at line 2747 of file GraphicalFunctions.php.
circleOffset | ( | $distance, | |
$iterations | |||
) |
Creates some offset values in an array used to simulate a circularly applied outline around TEXT
access private
int | $distance | Distance |
int | $iterations | Iterations. |
Definition at line 1387 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\makeOutline().
combineExec | ( | $input, | |
$overlay, | |||
$mask, | |||
$output, | |||
$handleNegation = false |
|||
) |
Executes an ImageMagick "combine" (or composite in newer times) on four filenames - $input, $overlay and $mask as input files and $output as the output filename (written to) Can be used for many things, mostly scaling and effects.
string | $input | The relative (to PATH_site) image filepath, bottom file |
string | $overlay | The relative (to PATH_site) image filepath, overlay file (top) |
string | $mask | The relative (to PATH_site) image filepath, the mask file (grayscale) |
string | $output | The relative (to PATH_site) image filepath, output filename (written to) |
bool | $handleNegation |
Definition at line 2616 of file GraphicalFunctions.php.
References GraphicalFunctions\$gifExtension, CommandUtility\escapeShellArgument(), GeneralUtility\fixPermissions(), GeneralUtility\imageMagickCommand(), GraphicalFunctions\imageMagickExec(), and GraphicalFunctions\randomName().
Referenced by GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), and GraphicalFunctions\maskImageOntoImage().
convertColor | ( | $string | ) |
Converts a "HTML-color" TypoScript datatype to RGB-values. Default is 0,0,0
string | $string | "HTML-color" data type string, eg. 'red', '#ffeedd' or '255,0,255'. You can also add a modifying operator afterwards. There are two options: "255,0,255 : 20" - will add 20 to values, result is "255,20,255". Or "255,0,255 : *1.23" which will multiply all RGB values with 1.23 |
Definition at line 2048 of file GraphicalFunctions.php.
References elseif, and MathUtility\forceIntegerInRange().
Referenced by GraphicalFunctions\crop(), GraphicalFunctions\ImageTTFTextWrapper(), GifBuilder\make(), GraphicalFunctions\makeBox(), GraphicalFunctions\makeEllipse(), GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), and GraphicalFunctions\unifyColors().
copyGifOntoGif | ( | & | $im, |
$cpImg, | |||
$conf, | |||
$workArea | |||
) |
Copies two GDlib image pointers onto each other, using TypoScript configuration from $conf and the input $workArea definition.
resource | $im | GDlib image pointer, destination (bottom image) |
resource | $cpImg | GDlib image pointer, source (top image) |
array | $conf | TypoScript array with the properties for the IMAGE GIFBUILDER object. Only used for the "tile" property value. |
array | $workArea | Work area |
Definition at line 497 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, MathUtility\forceIntegerInRange(), GraphicalFunctions\imagecopyresized(), GeneralUtility\intExplode(), and GraphicalFunctions\objPosition().
Referenced by GraphicalFunctions\copyImageOntoImage(), GraphicalFunctions\crop(), and GraphicalFunctions\maskImageOntoImage().
copyImageOntoImage | ( | & | $im, |
$conf, | |||
$workArea | |||
) |
Implements the "IMAGE" GIFBUILDER object, when the "mask" property is FALSE (using only $conf['file'])
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
Definition at line 474 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GraphicalFunctions\copyGifOntoGif(), GraphicalFunctions\imageCreateFromFile(), GraphicalFunctions\imageMagickConvert(), and GeneralUtility\inList().
Referenced by GifBuilder\make().
createTempSubDir | ( | $dirName | ) |
Creates subdirectory in typo3temp/ if not already found.
string | $dirName | Name of sub directory |
Definition at line 2762 of file GraphicalFunctions.php.
References GraphicalFunctions\$tempPath, GeneralUtility\isFirstPartOfStr(), and GeneralUtility\mkdir().
Referenced by GifBuilder\gifBuild(), GraphicalFunctions\imageMagickConvert(), and GraphicalFunctions\randomName().
crop | ( | & | $im, |
$conf | |||
) |
Implements the "CROP" GIFBUILDER object
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1753 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GraphicalFunctions\convertColor(), GraphicalFunctions\copyGifOntoGif(), GeneralUtility\intExplode(), GraphicalFunctions\objPosition(), and GraphicalFunctions\setWorkArea().
Referenced by GifBuilder\make().
destroy | ( | ) |
Destroy internal image pointer, $this->im
Definition at line 2874 of file GraphicalFunctions.php.
Referenced by GifBuilder\gifBuild().
fontResize | ( | $conf | ) |
Function that finds the right fontsize that will render the textstring within a certain width
array | $conf | The TypoScript properties of the TEXT GIFBUILDER object |
Definition at line 930 of file GraphicalFunctions.php.
References GraphicalFunctions\calcWordSpacing(), elseif, GraphicalFunctions\ImageTTFBBoxWrapper(), and GraphicalFunctions\recodeString().
|
protected |
Creates the key for the image dimensions cache for an image file.
This method does not check if the image file actually exists.
string | $filePath | Image file path, relative to PATH_site |
Definition at line 2394 of file GraphicalFunctions.php.
|
protected |
Creates the status hash to check whether a file has been changed.
string | $filePath | Image file path, relative to PATH_site |
Definition at line 2406 of file GraphicalFunctions.php.
|
protected |
Gets the break space for each new line.
array | $conf | TypoScript configuration for the currently rendered object |
array | $boundingBox | The bounding box the the currently rendered object |
Definition at line 1328 of file GraphicalFunctions.php.
References GraphicalFunctions\calcBBox().
Referenced by GraphicalFunctions\calcBBox(), and GraphicalFunctions\renderTTFText().
getImageDimensions | ( | $imageFile | ) |
Gets the input image dimensions.
string | $imageFile | The image filepath |
Definition at line 2303 of file GraphicalFunctions.php.
References GraphicalFunctions\imageMagickIdentify(), and GeneralUtility\inList().
Referenced by GraphicalFunctions\imageMagickConvert(), and GraphicalFunctions\maskImageOntoImage().
getImageScale | ( | $info, | |
$w, | |||
$h, | |||
$options | |||
) |
Get numbers for scaling the image based on input
array | $info | Current image information: Width, Height etc. |
int | $w | "required" width |
int | $h | "required" height |
array | $options | Options: Keys are like "maxW", "maxH", "minW", "minH |
Definition at line 2424 of file GraphicalFunctions.php.
Referenced by LocalCropScaleMaskHelper\getNewSvgDimensions(), and GraphicalFunctions\imageMagickConvert().
|
protected |
Gets the rendered text width.
string | $text | |
array | $conf | |
int |
Definition at line 1308 of file GraphicalFunctions.php.
References elseif, GraphicalFunctions\ImageTTFBBoxWrapper(), and GraphicalFunctions\recodeString().
Referenced by GraphicalFunctions\calcBBox(), and GraphicalFunctions\renderTTFText().
getTemporaryImageWithText | ( | $filename, | |
$textline1, | |||
$textline2, | |||
$textline3 | |||
) |
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 | $filename | Name of the file |
string | $textline1 | Text line 1 |
string | $textline2 | Text line 2 |
string | $textline3 | Text line 3 |
\RuntimeException |
Definition at line 3064 of file GraphicalFunctions.php.
getTextScalFactor | ( | $conf | ) |
Calculates and returns the niceText.scaleFactor
array | $conf | TypoScript array for the TEXT GIFBUILDER object |
Definition at line 1224 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange().
Referenced by GraphicalFunctions\calcBBox().
|
protected |
Gets the word pairs used for automatic line breaks.
string | $string |
Definition at line 1290 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\calcBBox(), and GraphicalFunctions\renderTTFText().
gif_or_jpg | ( | $type, | |
$w, | |||
$h | |||
) |
Returns an image extension for an output image based on the number of pixels of the output and the file extension of the original file. For example: If the number of pixels exceeds $this->pixelLimitGif (normally 10000) then it will be a "jpg" string in return.
string | $type | The file extension, lowercase. |
int | $w | The width of the output image. |
int | $h | The height of the output image. |
Definition at line 2810 of file GraphicalFunctions.php.
References GraphicalFunctions\$gifExtension.
Referenced by GraphicalFunctions\imageMagickConvert().
|
static |
Compressing a GIF file if not already LZW compressed. This function is a workaround for the fact that ImageMagick and/or GD does not compress GIF-files to their minimun size (that is RLE or no compression used)
The function takes a file-reference, $theFile, and saves it again through GD or ImageMagick in order to compress the file GIF: If $type is not set, the compression is done with ImageMagick (provided that $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path_lzw'] is pointing to the path of a lzw-enabled version of 'convert') else with GD (should be RLE-enabled!) If $type is set to either 'IM' or 'GD' the compression is done with ImageMagick and GD respectively PNG: No changes.
$theFile is expected to be a valid GIF-file! The function returns a code for the operation.
string | $theFile | Filepath |
string | $type | See description of function |
Definition at line 2653 of file GraphicalFunctions.php.
References $GLOBALS, elseif, CommandUtility\exec(), GeneralUtility\fixPermissions(), and GeneralUtility\imageMagickCommand().
Referenced by GeneralUtility\gif_compress(), and IconUtility\makeIcon().
hexColor | ( | $col | ) |
Returns the HEX color value for an RGB color array
array | RGB color array |
Definition at line 2981 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\unifyColors().
imagecopyresized | ( | & | $dstImg, |
$srcImg, | |||
$dstX, | |||
$dstY, | |||
$srcX, | |||
$srcY, | |||
$dstWidth, | |||
$dstHeight, | |||
$srcWidth, | |||
$srcHeight | |||
) |
Alternative function for using the similar PHP function imagecopyresized(). Used for GD2 only.
OK, the reason for this stupid fix is the following story: GD1.x was capable of copying two images together and combining their palettes! GD2 is apparently not. With GD2 only the palette of the dest-image is used which mostly results in totally black images when trying to copy a color-ful image onto the destination. The GD2-fix is to 1) Create a blank TRUE-COLOR image 2) Copy the destination image onto that one 3) Then do the actual operation; Copying the source (top image) onto that 4) ... and return the result pointer. 5) Reduce colors (if we do not, the result may become strange!) It works, but the resulting images is now a true-color PNG which may be very large. So, why not use 'imagetruecolortopalette ($im, TRUE, 256)' - well because it does NOT WORK! So simple is that.
resource | $dstImg | Destination image |
resource | $srcImg | Source image |
int | $dstX | Destination x-coordinate |
int | $dstY | Destination y-coordinate |
int | $srcX | Source x-coordinate |
int | $srcY | Source y-coordinate |
int | $dstWidth | Destination width |
int | $dstHeight | Destination height |
int | $srcWidth | Source width |
int | $srcHeight | Source height |
Definition at line 578 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\copyGifOntoGif(), and GraphicalFunctions\makeShadow().
imageCreateFromFile | ( | $sourceImg | ) |
Creates a new GDlib image resource based on the input image filename. If it fails creating an image from the input file a blank gray image with the dimensions of the input image will be created instead.
string | $sourceImg | Image filename |
Definition at line 2940 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\applyImageMagickToPHPGif(), GraphicalFunctions\copyImageOntoImage(), GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), GraphicalFunctions\maskImageOntoImage(), GraphicalFunctions\scale(), and GraphicalFunctions\unifyColors().
imageMagickConvert | ( | $imagefile, | |
$newExt = '' , |
|||
$w = '' , |
|||
$h = '' , |
|||
$params = '' , |
|||
$frame = '' , |
|||
$options = array() , |
|||
$mustCreate = false |
|||
) |
Converts $imagefile to another file in temp-dir of type $newExt (extension).
string | $imagefile | The image filepath |
string | $newExt | New extension, eg. "gif", "png", "jpg", "tif". If $newExt is NOT set, the new imagefile will be of the original format. If newExt = 'WEB' then one of the web-formats is applied. |
string | $w | Width. $w / $h is optional. If only one is given the image is scaled proportionally. If an 'm' exists in the $w or $h and if both are present the $w and $h is regarded as the Maximum w/h and the proportions will be kept |
string | $h | Height. See $w |
string | $params | Additional ImageMagick parameters. |
string | $frame | Refers to which frame-number to select in the image. '' or 0 will select the first frame, 1 will select the next and so on... |
array | $options | An array with options passed to getImageScale (see this function). |
bool | $mustCreate | If set, then another image than the input imagefile MUST be returned. Otherwise you can risk that the input image is good enough regarding messures etc and is of course not rendered to a new, temporary file in typo3temp/. But this option will force it to. |
Definition at line 2197 of file GraphicalFunctions.php.
References GraphicalFunctions\$imageMagickConvert_forceFileNameBody, GraphicalFunctions\createTempSubDir(), GraphicalFunctions\getImageDimensions(), GraphicalFunctions\getImageScale(), GraphicalFunctions\gif_or_jpg(), GraphicalFunctions\imageMagickExec(), GeneralUtility\inList(), and GeneralUtility\shortMD5().
Referenced by GraphicalFunctions\copyImageOntoImage(), GraphicalFunctions\maskImageOntoImage(), and GraphicalFunctions\scale().
imageMagickExec | ( | $input, | |
$output, | |||
$params, | |||
$frame = 0 |
|||
) |
Executes an ImageMagick "convert" on two filenames, $input and $output using $params before them. Can be used for many things, mostly scaling and effects.
string | $input | The relative (to PATH_site) image filepath, input file (read from) |
string | $output | The relative (to PATH_site) image filepath, output filename (written to) |
string | $params | ImageMagick parameters |
int | $frame | Optional, refers to which frame-number to select in the image. '' or 0 |
Definition at line 2586 of file GraphicalFunctions.php.
References CommandUtility\escapeShellArgument(), GeneralUtility\fixPermissions(), and GeneralUtility\imageMagickCommand().
Referenced by GraphicalFunctions\applyImageMagickToPHPGif(), GraphicalFunctions\combineExec(), GraphicalFunctions\imageMagickConvert(), GraphicalFunctions\IMreduceColors(), GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), and GraphicalFunctions\unifyColors().
imageMagickIdentify | ( | $imagefile | ) |
Returns an array where [0]/[1] is w/h, [2] is extension and [3] is the filename. Using ImageMagick
string | $imagefile | The relative (to PATH_site) image filepath |
Definition at line 2547 of file GraphicalFunctions.php.
References CommandUtility\escapeShellArgument(), and GeneralUtility\imageMagickCommand().
Referenced by GraphicalFunctions\getImageDimensions().
ImageTTFBBoxWrapper | ( | $fontSize, | |
$angle, | |||
$fontFile, | |||
$string, | |||
$splitRendering, | |||
$sF = 1 |
|||
) |
Wrapper for ImageTTFBBox
int | $fontSize | (See argument for PHP function ImageTTFBBox()) |
int | $angle | (See argument for PHP function ImageTTFBBox()) |
string | $fontFile | (See argument for PHP function ImageTTFBBox()) |
string | $string | (See argument for PHP function ImageTTFBBox()) |
array | $splitRendering | Split-rendering configuration |
int | $sF | Scale factor |
Calculate Bounding Box for part. Due to a PHP bug, we must retry if $calc[2] is negative.
Definition at line 973 of file GraphicalFunctions.php.
References debug(), GeneralUtility\freetypeDpiComp(), and GraphicalFunctions\splitString().
Referenced by GraphicalFunctions\calcBBox(), GraphicalFunctions\fontResize(), GraphicalFunctions\getRenderedTextWidth(), and GraphicalFunctions\SpacedImageTTFText().
ImageTTFTextWrapper | ( | $im, | |
$fontSize, | |||
$angle, | |||
$x, | |||
$y, | |||
$color, | |||
$fontFile, | |||
$string, | |||
$splitRendering, | |||
$sF = 1 |
|||
) |
Wrapper for ImageTTFText
resource | $im | (See argument for PHP function imageTTFtext()) |
int | $fontSize | (See argument for PHP function imageTTFtext()) |
int | $angle | (See argument for PHP function imageTTFtext()) |
int | $x | (See argument for PHP function imageTTFtext()) |
int | $y | (See argument for PHP function imageTTFtext()) |
int | $color | (See argument for PHP function imageTTFtext()) |
string | $fontFile | (See argument for PHP function imageTTFtext()) |
string | $string | (See argument for PHP function imageTTFtext()). UTF-8 string, possibly with entities in. |
array | $splitRendering | Split-rendering configuration |
int | $sF | Scale factor |
Definition at line 1025 of file GraphicalFunctions.php.
References GraphicalFunctions\convertColor(), debug(), GeneralUtility\freetypeDpiComp(), and GraphicalFunctions\splitString().
Referenced by GraphicalFunctions\renderTTFText(), and GraphicalFunctions\SpacedImageTTFText().
ImageWrite | ( | $destImg, | |
$theImage, | |||
$quality = 0 |
|||
) |
Writes the input GDlib image pointer to file
resource | $destImg | The GDlib image resource pointer |
string | $theImage | The filename to write to |
int | $quality | The image quality (for JPEGs) |
Definition at line 2899 of file GraphicalFunctions.php.
References GeneralUtility\fixPermissions().
Referenced by GraphicalFunctions\applyImageMagickToPHPGif(), GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), GraphicalFunctions\maskImageOntoImage(), GraphicalFunctions\output(), and GraphicalFunctions\scale().
imgTag | ( | $imgInfo | ) |
Returns Image Tag for input image information array.
array | $imgInfo | Image information array, key 0/1 is width/height and key 3 is the src value |
Definition at line 2885 of file GraphicalFunctions.php.
IMparams | ( | $setup | ) |
Creating ImageMagick parameters from TypoScript property
string | $setup | A string with effect keywords=value pairs separated by "| |
Definition at line 1631 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange(), GeneralUtility\intExplode(), GraphicalFunctions\v5_blur(), and GraphicalFunctions\v5_sharpen().
Referenced by GraphicalFunctions\makeEffect().
IMreduceColors | ( | $file, | |
$cols | |||
) |
Reduce colors in image using IM and create a palette based image if possible (<=256 colors)
string | $file | Image file to reduce |
int | $cols | Number of colors to reduce the image to. |
Definition at line 1935 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange(), GraphicalFunctions\imageMagickExec(), GraphicalFunctions\randomName(), and GeneralUtility\split_fileref().
Referenced by GraphicalFunctions\output().
init | ( | ) |
Init function. Must always call this when using the class. This function will read the configuration information from $GLOBALS['TYPO3_CONF_VARS']['GFX'] can set some values in internal variables.
Definition at line 299 of file GraphicalFunctions.php.
References $GLOBALS, elseif, MathUtility\forceIntegerInRange(), GeneralUtility\makeInstance(), and GraphicalFunctions\v5_sharpen().
inputLevels | ( | & | $im, |
$low, | |||
$high | |||
) |
Apply input levels to input image pointer (increasing contrast)
int | $im | GDlib Image Pointer |
int | $low | The "low" value (close to 0) |
int | $high | The "high" value (close to 255) |
Definition at line 1911 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange().
Referenced by GraphicalFunctions\adjust(), and GraphicalFunctions\makeShadow().
makeBox | ( | & | $im, |
$conf, | |||
$workArea | |||
) |
Implements the "BOX" GIFBUILDER object
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
Definition at line 1554 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GraphicalFunctions\convertColor(), MathUtility\forceIntegerInRange(), GeneralUtility\intExplode(), and GraphicalFunctions\objPosition().
Referenced by GifBuilder\make().
makeEffect | ( | & | $im, |
$conf | |||
) |
Implements the "EFFECT" GIFBUILDER object The operation involves ImageMagick for applying effects
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1615 of file GraphicalFunctions.php.
References GraphicalFunctions\applyImageMagickToPHPGif(), and GraphicalFunctions\IMparams().
Referenced by GifBuilder\make().
makeEllipse | ( | & | $im, |
array | $conf, | ||
array | $workArea | ||
) |
Implements the "Ellipse" GIFBUILDER object Example Typoscript: file = GIFBUILDER file { XY = 200,200 format = jpg quality = 100 10 = ELLIPSE 10.dimensions = 100,100,50,50 10.color = red
$workArea = X,Y $conf['dimensions'] = offset x, offset y, width of ellipse, height of ellipse
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
Definition at line 1594 of file GraphicalFunctions.php.
References GraphicalFunctions\convertColor(), GeneralUtility\intExplode(), and GraphicalFunctions\objPosition().
Referenced by GifBuilder\make().
makeEmboss | ( | & | $im, |
$conf, | |||
$workArea, | |||
$txtConf | |||
) |
Implements the "EMBOSS" GIFBUILDER object / property for the TEXT object
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
array | $txtConf | TypoScript array with configuration for the associated TEXT GIFBUILDER object. |
Definition at line 1416 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GeneralUtility\intExplode(), and GraphicalFunctions\makeShadow().
Referenced by GifBuilder\make().
makeOutline | ( | & | $im, |
$conf, | |||
$workArea, | |||
$txtConf | |||
) |
Implements the "OUTLINE" GIFBUILDER object / property for the TEXT object
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
array | $txtConf | TypoScript array with configuration for the associated TEXT GIFBUILDER object. |
Definition at line 1357 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GraphicalFunctions\applyOffset(), GraphicalFunctions\circleOffset(), MathUtility\forceIntegerInRange(), and GraphicalFunctions\makeText().
Referenced by GifBuilder\make().
makeShadow | ( | & | $im, |
$conf, | |||
$workArea, | |||
$txtConf | |||
) |
Implements the "SHADOW" GIFBUILDER object / property for the TEXT object The operation involves ImageMagick for combining.
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
array | $txtConf | TypoScript array with configuration for the associated TEXT GIFBUILDER object. |
Definition at line 1439 of file GraphicalFunctions.php.
References GraphicalFunctions\$gifExtension, GraphicalFunctions\$workArea, GraphicalFunctions\applyOffset(), GraphicalFunctions\combineExec(), GraphicalFunctions\convertColor(), MathUtility\forceIntegerInRange(), GraphicalFunctions\imagecopyresized(), GraphicalFunctions\imageCreateFromFile(), GraphicalFunctions\imageMagickExec(), GraphicalFunctions\ImageWrite(), GraphicalFunctions\inputLevels(), GeneralUtility\intExplode(), GraphicalFunctions\makeText(), GraphicalFunctions\outputLevels(), GraphicalFunctions\randomName(), and GraphicalFunctions\v5_blur().
Referenced by GifBuilder\make(), and GraphicalFunctions\makeEmboss().
makeText | ( | & | $im, |
$conf, | |||
$workArea | |||
) |
Implements the "TEXT" GIFBUILDER object
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
Definition at line 608 of file GraphicalFunctions.php.
References GraphicalFunctions\$gifExtension, GraphicalFunctions\$workArea, GraphicalFunctions\addToMap(), GraphicalFunctions\calcTextCordsForMap(), GraphicalFunctions\calcWordSpacing(), GraphicalFunctions\combineExec(), GraphicalFunctions\convertColor(), MathUtility\forceIntegerInRange(), GraphicalFunctions\imageCreateFromFile(), GraphicalFunctions\imageMagickExec(), GraphicalFunctions\ImageWrite(), GraphicalFunctions\randomName(), GraphicalFunctions\recodeString(), GraphicalFunctions\renderTTFText(), GraphicalFunctions\SpacedImageTTFText(), GraphicalFunctions\txtPosition(), and GraphicalFunctions\v5_sharpen().
Referenced by GifBuilder\make(), GraphicalFunctions\makeOutline(), and GraphicalFunctions\makeShadow().
maskImageOntoImage | ( | & | $im, |
$conf, | |||
$workArea | |||
) |
Implements the "IMAGE" GIFBUILDER object, when the "mask" property is TRUE. It reads the two images defined by $conf['file'] and $conf['mask'] and copies the $conf['file'] onto the input image pointer image using the $conf['mask'] as a grayscale mask The operation involves ImageMagick for combining.
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
array | $workArea | The current working area coordinates. |
Definition at line 387 of file GraphicalFunctions.php.
References GraphicalFunctions\$gifExtension, GraphicalFunctions\$workArea, GraphicalFunctions\combineExec(), GraphicalFunctions\copyGifOntoGif(), GraphicalFunctions\getImageDimensions(), GraphicalFunctions\imageCreateFromFile(), GraphicalFunctions\imageMagickConvert(), GraphicalFunctions\ImageWrite(), GeneralUtility\inList(), and GraphicalFunctions\randomName().
Referenced by GifBuilder\make().
objPosition | ( | $conf, | |
$workArea, | |||
$BB | |||
) |
Create an array with object position/boundaries based on input TypoScript configuration (such as the "align" property is used), the work area definition and $BB array
array | $conf | TypoScript configuration for a GIFBUILDER object |
array | makeBox Workarea definition | |
array | $BB | BB (Bounding box) array. Not just used for TEXT objects but also for others |
Definition at line 2141 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GraphicalFunctions\applyOffset(), and GeneralUtility\intExplode().
Referenced by GraphicalFunctions\copyGifOntoGif(), GraphicalFunctions\crop(), GraphicalFunctions\makeBox(), and GraphicalFunctions\makeEllipse().
output | ( | $file | ) |
Writing the internal image pointer, $this->im, to file based on the extension of the input filename Used in GIFBUILDER Uses $this->setup['reduceColors'] for gif/png images and $this->setup['quality'] for jpg images to reduce size/quality if needed.
string | $file | The filename to write to. |
Definition at line 2828 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange(), GraphicalFunctions\ImageWrite(), and GraphicalFunctions\IMreduceColors().
Referenced by GifBuilder\gifBuild().
outputLevels | ( | & | $im, |
$low, | |||
$high, | |||
$swap = '' |
|||
) |
Apply output levels to input image pointer (decreasing contrast)
int | $im | GDlib Image Pointer |
int | $low | The "low" value (close to 0) |
int | $high | The "high" value (close to 255) |
bool | $swap | If swap, then low and high are swapped. (Useful for negated masks...) |
Definition at line 1881 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange().
Referenced by GraphicalFunctions\adjust(), and GraphicalFunctions\makeShadow().
|
static |
Converts a png file to gif. This converts a png file to gif IF the FLAG $GLOBALS['TYPO3_CONF_VARS']['FE']['png_to_gif'] is set TRUE.
string | $theFile | The filename with path |
Definition at line 2696 of file GraphicalFunctions.php.
References GeneralUtility\logDeprecatedFunction().
Referenced by GeneralUtility\png_to_gif_by_imagemagick().
prependAbsolutePath | ( | $fontFile | ) |
Checks if the $fontFile is already at an absolute path and if not, prepends the correct path. Use PATH_site unless we are in the backend. Call it by ::prependAbsolutePath()
string | $fontFile | The font file |
Definition at line 1969 of file GraphicalFunctions.php.
References GeneralUtility\isAbsPath(), and GeneralUtility\resolveBackPath().
randomName | ( | ) |
Returns a random filename prefixed with "temp_" and then 32 char md5 hash (without extension) from $this->tempPath. Used by functions in this class to create truely temporary files for the on-the-fly processing. These files will most likely be deleted right away.
Definition at line 2020 of file GraphicalFunctions.php.
References GraphicalFunctions\createTempSubDir().
Referenced by GraphicalFunctions\applyImageMagickToPHPGif(), GraphicalFunctions\combineExec(), GraphicalFunctions\IMreduceColors(), GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), GraphicalFunctions\maskImageOntoImage(), GraphicalFunctions\scale(), and GraphicalFunctions\unifyColors().
|
static |
Returns filename of the png/gif version of the input file (which can be png or gif). If input file type does not match the wanted output type a conversion is made and temp-filename returned.
string | $theFile | Filepath of image file |
bool | $output_png | If TRUE, then input file is converted to PNG, otherwise to GIF |
Definition at line 2710 of file GraphicalFunctions.php.
References $GLOBALS, CommandUtility\exec(), GeneralUtility\fixPermissions(), GeneralUtility\imageMagickCommand(), and GeneralUtility\mkdir().
Referenced by IconUtility\imagecreatefrom(), and GeneralUtility\read_png_gif().
recodeString | ( | $string | ) |
Recode string Used with text strings for fonts when languages has other character sets.
string | The text to recode |
Definition at line 2098 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\calcBBox(), GraphicalFunctions\fontResize(), GraphicalFunctions\getRenderedTextWidth(), and GraphicalFunctions\makeText().
|
protected |
Renders a regular text and takes care of a possible line break automatically.
resource | $im | (See argument for PHP function imageTTFtext()) |
int | $fontSize | (See argument for PHP function imageTTFtext()) |
int | $angle | (See argument for PHP function imageTTFtext()) |
int | $x | (See argument for PHP function imageTTFtext()) |
int | $y | (See argument for PHP function imageTTFtext()) |
int | $color | (See argument for PHP function imageTTFtext()) |
string | $fontFile | (See argument for PHP function imageTTFtext()) |
string | $string | (See argument for PHP function imageTTFtext()). UTF-8 string, possibly with entities in. |
array | $splitRendering | Split-rendering configuration |
array | $conf | The configuration |
int | $sF | Scale factor |
Definition at line 1251 of file GraphicalFunctions.php.
References GraphicalFunctions\getBreakSpace(), GraphicalFunctions\getRenderedTextWidth(), GraphicalFunctions\getWordPairsForLineBreak(), and GraphicalFunctions\ImageTTFTextWrapper().
Referenced by GraphicalFunctions\makeText().
scale | ( | & | $im, |
$conf | |||
) |
Implements the "SCALE" GIFBUILDER object
resource | $im | GDlib image pointer |
array | $conf | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1792 of file GraphicalFunctions.php.
References GraphicalFunctions\$gifExtension, GraphicalFunctions\imageCreateFromFile(), GraphicalFunctions\imageMagickConvert(), GraphicalFunctions\ImageWrite(), GraphicalFunctions\randomName(), and GraphicalFunctions\setWorkArea().
Referenced by GifBuilder\make().
setWorkArea | ( | $workArea | ) |
Implements the "WORKAREA" GIFBUILDER object when setting it Setting internal working area boundaries (->workArea)
string | $workArea | Working area dimensions, comma separated |
Definition at line 1826 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GraphicalFunctions\applyOffset(), and GeneralUtility\intExplode().
Referenced by GraphicalFunctions\crop(), GifBuilder\make(), and GraphicalFunctions\scale().
singleChars | ( | $theText, | |
$returnUnicodeNumber = false |
|||
) |
Split a string into an array of individual characters The function will look at $this->nativeCharset and if that is set, the input string is expected to be UTF-8 encoded, possibly with entities in it. Otherwise the string is supposed to be a single-byte charset which is just splitted by a for-loop.
string | $theText | The text string to split |
bool | $returnUnicodeNumber | Return Unicode numbers instead of chars. |
Definition at line 2116 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\calcBBox(), GraphicalFunctions\SpacedImageTTFText(), and GraphicalFunctions\splitString().
SpacedImageTTFText | ( | & | $im, |
$fontSize, | |||
$angle, | |||
$x, | |||
$y, | |||
$Fcolor, | |||
$fontFile, | |||
$text, | |||
$spacing, | |||
$wordSpacing, | |||
$splitRenderingConf, | |||
$sF = 1 |
|||
) |
Printing text onto an image like the PHP function imageTTFText does but in addition it offers options for spacing of letters and words. Spacing is done by printing one char at a time and this means that the spacing is rather uneven and probably not very nice. See
resource | $im | (See argument for PHP function imageTTFtext()) |
int | $fontSize | (See argument for PHP function imageTTFtext()) |
int | $angle | (See argument for PHP function imageTTFtext()) |
int | $x | (See argument for PHP function imageTTFtext()) |
int | $y | (See argument for PHP function imageTTFtext()) |
int | $Fcolor | (See argument for PHP function imageTTFtext()) |
string | $fontFile | (See argument for PHP function imageTTFtext()) |
string | $text | (See argument for PHP function imageTTFtext()). UTF-8 string, possibly with entities in. |
int | $spacing | The spacing of letters in pixels |
int | $wordSpacing | The spacing of words in pixels |
array | $splitRenderingConf | Array |
int | $sF | Scale factor |
Definition at line 897 of file GraphicalFunctions.php.
References GraphicalFunctions\ImageTTFBBoxWrapper(), GraphicalFunctions\ImageTTFTextWrapper(), and GraphicalFunctions\singleChars().
Referenced by GraphicalFunctions\makeText().
splitString | ( | $string, | |
$splitRendering, | |||
$fontSize, | |||
$fontFile | |||
) |
Splitting a string for ImageTTFBBox up into an array where each part has its own configuration options.
string | $string | UTF-8 string |
array | $splitRendering | Split-rendering configuration from GIFBUILDER TEXT object. |
int | $fontSize | Current fontsize |
string | $fontFile | Current font file |
Definition at line 1069 of file GraphicalFunctions.php.
References GeneralUtility\inList(), GeneralUtility\intExplode(), GraphicalFunctions\singleChars(), and GeneralUtility\trimExplode().
Referenced by GraphicalFunctions\ImageTTFBBoxWrapper(), and GraphicalFunctions\ImageTTFTextWrapper().
txtPosition | ( | $conf, | |
$workArea, | |||
$BB | |||
) |
Calculates text position for printing the text onto the image based on configuration like alignment and workarea.
array | $conf | TypoScript array for the TEXT GIFBUILDER object |
array | $workArea | Workarea definition |
array | $BB | Bounding box information, was set in ::start() |
Definition at line 713 of file GraphicalFunctions.php.
References GraphicalFunctions\$workArea, GraphicalFunctions\applyOffset(), GraphicalFunctions\calcBBox(), and GeneralUtility\intExplode().
Referenced by GraphicalFunctions\makeText().
unifyColors | ( | & | $img, |
$colArr, | |||
$closest = false |
|||
) |
Unifies all colors given in the colArr color array to the first color in the array.
resource | $img | Image resource |
array | $colArr | Array containing RGB color arrays |
bool | $closest |
Definition at line 3006 of file GraphicalFunctions.php.
References GraphicalFunctions\convertColor(), GraphicalFunctions\hexColor(), GraphicalFunctions\imageCreateFromFile(), GraphicalFunctions\imageMagickExec(), and GraphicalFunctions\randomName().
Referenced by GifBuilder\make().
v5_blur | ( | $factor | ) |
Returns the IM command for blurring with ImageMagick 5 (when $this->V5_EFFECTS is set). Uses $this->im5fx_blurSteps for translation of the factor to an actual command.
int | $factor | The blurring factor, 0-100 (effectively in 10 steps) |
Definition at line 2003 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange().
Referenced by GraphicalFunctions\IMparams(), and GraphicalFunctions\makeShadow().
v5_sharpen | ( | $factor | ) |
Returns the IM command for sharpening with ImageMagick 5 (when $this->V5_EFFECTS is set). Uses $this->im5fx_sharpenSteps for translation of the factor to an actual command.
int | $factor | The sharpening factor, 0-100 (effectively in 10 steps) |
Definition at line 1984 of file GraphicalFunctions.php.
References MathUtility\forceIntegerInRange().
Referenced by GraphicalFunctions\IMparams(), GraphicalFunctions\init(), and GraphicalFunctions\makeText().
$absPrefix = '' |
Definition at line 225 of file GraphicalFunctions.php.
|
protected |
Definition at line 69 of file GraphicalFunctions.php.
$alternativeOutputKey = '' |
Definition at line 192 of file GraphicalFunctions.php.
$cmds |
Definition at line 128 of file GraphicalFunctions.php.
$colMap |
Definition at line 260 of file GraphicalFunctions.php.
|
protected |
Definition at line 62 of file GraphicalFunctions.php.
$csConvObj |
Definition at line 284 of file GraphicalFunctions.php.
$dontCheckForExistingTempFile = 0 |
Definition at line 169 of file GraphicalFunctions.php.
$dontCompress = 0 |
Definition at line 176 of file GraphicalFunctions.php.
$dontUnlinkTempFiles = 0 |
Definition at line 183 of file GraphicalFunctions.php.
$filenamePrefix = '' |
Definition at line 155 of file GraphicalFunctions.php.
$gdlibExtensions = '' |
Definition at line 48 of file GraphicalFunctions.php.
$gifExtension = 'gif' |
Definition at line 41 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\applyImageMagickToPHPGif(), GraphicalFunctions\combineExec(), GifBuilder\extension(), GraphicalFunctions\gif_or_jpg(), GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), GraphicalFunctions\maskImageOntoImage(), and GraphicalFunctions\scale().
$im5fx_blurSteps = '1x2,2x2,3x2,4x3,5x3,5x4,6x4,7x5,8x5,9x5' |
Definition at line 239 of file GraphicalFunctions.php.
$im5fx_sharpenSteps = '1x2,2x2,3x2,2x3,3x3,4x3,3x4,4x4,4x5,5x5' |
Definition at line 246 of file GraphicalFunctions.php.
$IM_commands = array() |
Definition at line 199 of file GraphicalFunctions.php.
$imageFileExt = 'gif,jpg,jpeg,png,tif,bmp,tga,pcx,ai,pdf' |
Definition at line 111 of file GraphicalFunctions.php.
$imageMagickConvert_forceFileNameBody = '' |
Definition at line 162 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\imageMagickConvert().
$mayScaleUp = 1 |
Definition at line 148 of file GraphicalFunctions.php.
$nativeCharset = '' |
Definition at line 291 of file GraphicalFunctions.php.
$NO_IM_EFFECTS = '' |
Definition at line 123 of file GraphicalFunctions.php.
$NO_IMAGE_MAGICK = '' |
Definition at line 138 of file GraphicalFunctions.php.
$noFramePrepended = 0 |
Definition at line 34 of file GraphicalFunctions.php.
$pixelLimitGif = 10000 |
Definition at line 253 of file GraphicalFunctions.php.
$png_truecolor = false |
Definition at line 55 of file GraphicalFunctions.php.
|
protected |
Definition at line 211 of file GraphicalFunctions.php.
$scalecmd = '-geometry' |
Definition at line 232 of file GraphicalFunctions.php.
$tempPath = 'typo3temp/' |
Definition at line 218 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\createTempSubDir().
$truecolorColors = 16777215 |
Definition at line 103 of file GraphicalFunctions.php.
$V5_EFFECTS = 0 |
Definition at line 143 of file GraphicalFunctions.php.
$webImageExt = 'gif,jpg,jpeg,png' |
Definition at line 118 of file GraphicalFunctions.php.
$workArea = array() |
Definition at line 204 of file GraphicalFunctions.php.
Referenced by GraphicalFunctions\copyGifOntoGif(), GraphicalFunctions\copyImageOntoImage(), GraphicalFunctions\crop(), GraphicalFunctions\makeBox(), GraphicalFunctions\makeEmboss(), GraphicalFunctions\makeOutline(), GraphicalFunctions\makeShadow(), GraphicalFunctions\makeText(), GraphicalFunctions\maskImageOntoImage(), GraphicalFunctions\objPosition(), GraphicalFunctions\setWorkArea(), and GraphicalFunctions\txtPosition().