Documentation TYPO3 par Ameos |
Public Member Functions | |
| init () | |
| maskImageOntoImage (&$im, $conf, $workArea) | |
| copyImageOntoImage (&$im, $conf, $workArea) | |
| copyGifOntoGif (&$im, $cpImg, $conf, $workArea) | |
| imagecopyresized (&$im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h) | |
| 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) | |
| 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, $swap='') | |
| reduceColors (&$im, $limit, $cols) | |
| 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='', $mustCreate=0) | |
| getImageDimensions ($imageFile) | |
| cacheImageDimensions ($identifyResult) | |
| getCachedImageDimensions ($imageFile) | |
| getImageScale ($info, $w, $h, $options) | |
| file_exists_typo3temp_file ($output, $orig='') | |
| imageMagickIdentify ($imagefile) | |
| imageMagickExec ($input, $output, $params) | |
| combineExec ($input, $overlay, $mask, $output, $handleNegation=false) | |
| wrapFileName ($inputName) | |
| checkFile ($file) | |
| createTempSubDir ($dirName) | |
| applyImageMagickToPHPGif (&$im, $command) | |
| gif_or_jpg ($type, $w, $h) | |
| output ($file) | |
| destroy () | |
| imgTag ($imgInfo) | |
| ImageWrite ($destImg, $theImage) | |
| imageGif ($destImg, $theImage) | |
| imageCreateFromGif ($sourceImg) | |
| imageCreateFromFile ($sourceImg) | |
| imagecreate ($w, $h) | |
| hexColor ($col) | |
| unifyColors (&$img, $colArr, $closest=false) | |
Public Attributes | |
| $combineScript = 'combine' | |
| $noFramePrepended = 0 | |
| $GD2 = 0 | |
| $imagecopyresized_fix = 0 | |
| $gifExtension = 'gif' | |
| $gdlibExtensions = '' | |
| $truecolor = true | |
| $png_truecolor = false | |
| $truecolorColors = 0xffffff | |
| $TTFLocaleConv = '' | |
| $enable_typo3temp_db_tracking = 0 | |
| $imageFileExt = 'gif,jpg,jpeg,png,tif,bmp,tga,pcx,ai,pdf' | |
| $webImageExt = 'gif,jpg,jpeg,png' | |
| $maskNegate = '' | |
| $NO_IM_EFFECTS = '' | |
| $cmds | |
| $NO_IMAGE_MAGICK = '' | |
| $V5_EFFECTS = 0 | |
| $im_version_4 = 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 = '' | |
Definition at line 155 of file class.t3lib_stdgraphic.php.
| t3lib_stdGraphic::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 236 of file class.t3lib_stdgraphic.php.
References t3lib_div::intInRange(), and t3lib_div::makeInstance().
| t3lib_stdGraphic::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.
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. | |
| array | The current working area coordinates. |
Definition at line 366 of file class.t3lib_stdgraphic.php.
References $workArea, combineExec(), copyGifOntoGif(), getImageDimensions(), imagecreate(), imageCreateFromFile(), imageMagickConvert(), ImageWrite(), t3lib_div::inList(), and randomName().
Referenced by tslib_gifBuilder::make().
| t3lib_stdGraphic::copyImageOntoImage | ( | &$ | im, | |
| $ | conf, | |||
| $ | workArea | |||
| ) |
Implements the "IMAGE" GIFBUILDER object, when the "mask" property is false (using only $conf['file'])
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. | |
| array | The current working area coordinates. |
Definition at line 436 of file class.t3lib_stdgraphic.php.
References $workArea, copyGifOntoGif(), imageCreateFromFile(), imageMagickConvert(), and t3lib_div::inList().
Referenced by tslib_gifBuilder::make().
| t3lib_stdGraphic::copyGifOntoGif | ( | &$ | im, | |
| $ | cpImg, | |||
| $ | conf, | |||
| $ | workArea | |||
| ) |
Copies two GDlib image pointers onto each other, using TypoScript configuration from $conf and the input $workArea definition.
| pointer | GDlib image pointer, destination (bottom image) | |
| pointer | GDlib image pointer, source (top image) | |
| array | TypoScript array with the properties for the IMAGE GIFBUILDER object. Only used for the "tile" property value. | |
| array | Work area |
Definition at line 458 of file class.t3lib_stdgraphic.php.
References $workArea, imagecopyresized(), t3lib_div::intExplode(), t3lib_div::intInRange(), and objPosition().
Referenced by copyImageOntoImage(), crop(), and maskImageOntoImage().
| t3lib_stdGraphic::imagecopyresized | ( | &$ | im, | |
| $ | cpImg, | |||
| $ | Xstart, | |||
| $ | Ystart, | |||
| $ | cpImgCutX, | |||
| $ | cpImgCutY, | |||
| $ | w, | |||
| $ | h, | |||
| $ | w, | |||
| $ | h | |||
| ) |
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.
For parameters, see PHP function "imagecopyresized()"
| pointer | see PHP function "imagecopyresized()" | |
| pointer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" |
Definition at line 537 of file class.t3lib_stdgraphic.php.
References imagecreate(), t3lib_div::intInRange(), makeEffect(), and reduceColors().
Referenced by copyGifOntoGif(), and makeShadow().
| t3lib_stdGraphic::makeText | ( | &$ | im, | |
| $ | conf, | |||
| $ | workArea | |||
| ) |
Implements the "TEXT" GIFBUILDER object
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. | |
| array | The current working area coordinates. |
Definition at line 587 of file class.t3lib_stdgraphic.php.
References $workArea, addToMap(), calcTextCordsForMap(), calcWordSpacing(), combineExec(), convertColor(), imagecreate(), imageCreateFromFile(), imageMagickExec(), ImageTTFTextWrapper(), ImageWrite(), t3lib_div::intInRange(), prependAbsolutePath(), randomName(), recodeString(), reduceColors(), SpacedImageTTFText(), txtPosition(), and v5_sharpen().
Referenced by tslib_gifBuilder::make(), makeOutline(), and makeShadow().
| t3lib_stdGraphic::txtPosition | ( | $ | conf, | |
| $ | workArea, | |||
| $ | BB | |||
| ) |
Calculates text position for printing the text onto the image based on configuration like alignment and workarea.
| array | TypoScript array for the TEXT GIFBUILDER object | |
| array | Workarea definition | |
| array | Bounding box information, was set in tslib_gifBuilder::start() |
Definition at line 707 of file class.t3lib_stdgraphic.php.
References $workArea, applyOffset(), calcBBox(), and t3lib_div::intExplode().
Referenced by makeText().
| t3lib_stdGraphic::calcBBox | ( | $ | conf | ) |
Calculates bounding box information for the TEXT GIFBUILDER object.
| array | TypoScript array for the TEXT GIFBUILDER object |
Definition at line 761 of file class.t3lib_stdgraphic.php.
References calcWordSpacing(), getTextScalFactor(), ImageTTFBBoxWrapper(), recodeString(), and singleChars().
Referenced by tslib_gifBuilder::start(), and txtPosition().
| t3lib_stdGraphic::addToMap | ( | $ | cords, | |
| $ | conf | |||
| ) |
Adds an <area> tag to the internal variable $this->map which is used to accumulate the content for an ImageMap
| array | Coordinates for a polygon image map as created by ->calcTextCordsForMap() | |
| array | Configuration for "imgMap." property of a TEXT GIFBUILDER object. |
Definition at line 820 of file class.t3lib_stdgraphic.php.
Referenced by makeText().
| t3lib_stdGraphic::calcTextCordsForMap | ( | $ | cords, | |
| $ | offset, | |||
| $ | conf | |||
| ) |
Calculating the coordinates for a TEXT string on an image map. Used in an <area> tag
| array | Coordinates (from BBOX array) | |
| array | Offset array | |
| array | Configuration for "imgMap." property of a TEXT GIFBUILDER object. |
Definition at line 843 of file class.t3lib_stdgraphic.php.
References t3lib_div::intExplode().
Referenced by makeText().
| t3lib_stdGraphic::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
| pointer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| string | (See argument for PHP function imageTTFtext()) | |
| string | (See argument for PHP function imageTTFtext()). UTF-8 string, possibly with entities in. | |
| integer | The spacing of letters in pixels | |
| integer | The spacing of words in pixels | |
| array | $splitRenderingConf array | |
| integer | Scale factor |
Definition at line 878 of file class.t3lib_stdgraphic.php.
References ImageTTFBBoxWrapper(), ImageTTFTextWrapper(), and singleChars().
Referenced by makeText().
| t3lib_stdGraphic::fontResize | ( | $ | conf | ) |
Function that finds the right fontsize that will render the textstring within a certain width
| array | The TypoScript properties of the TEXT GIFBUILDER object |
Definition at line 915 of file class.t3lib_stdgraphic.php.
References calcWordSpacing(), ImageTTFBBoxWrapper(), and recodeString().
Referenced by tslib_gifBuilder::start().
| t3lib_stdGraphic::ImageTTFBBoxWrapper | ( | $ | fontSize, | |
| $ | angle, | |||
| $ | fontFile, | |||
| $ | string, | |||
| $ | splitRendering, | |||
| $ | sF = 1 | |||
| ) |
Wrapper for ImageTTFBBox
| integer | (See argument for PHP function ImageTTFBBox()) | |
| integer | (See argument for PHP function ImageTTFBBox()) | |
| string | (See argument for PHP function ImageTTFBBox()) | |
| string | (See argument for PHP function ImageTTFBBox()) | |
| array | Split-rendering configuration | |
| integer | Scale factor |
Definition at line 958 of file class.t3lib_stdgraphic.php.
References t3lib_div::freetypeDpiComp(), prependAbsolutePath(), and splitString().
Referenced by calcBBox(), fontResize(), and SpacedImageTTFText().
| t3lib_stdGraphic::ImageTTFTextWrapper | ( | $ | im, | |
| $ | fontSize, | |||
| $ | angle, | |||
| $ | x, | |||
| $ | y, | |||
| $ | color, | |||
| $ | fontFile, | |||
| $ | string, | |||
| $ | splitRendering, | |||
| $ | sF = 1 | |||
| ) |
Wrapper for ImageTTFText
| pointer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| integer | (See argument for PHP function imageTTFtext()) | |
| string | (See argument for PHP function imageTTFtext()) | |
| string | (See argument for PHP function imageTTFtext()). UTF-8 string, possibly with entities in. | |
| array | Split-rendering configuration | |
| integer | Scale factor |
Definition at line 1005 of file class.t3lib_stdgraphic.php.
References convertColor(), t3lib_div::freetypeDpiComp(), prependAbsolutePath(), and splitString().
Referenced by makeText(), and SpacedImageTTFText().
| t3lib_stdGraphic::splitString | ( | $ | string, | |
| $ | splitRendering, | |||
| $ | fontSize, | |||
| $ | fontFile | |||
| ) |
Splitting a string for ImageTTFBBox up into an array where each part has its own configuration options.
| string | UTF-8 string | |
| array | Split-rendering configuration from GIFBUILDER TEXT object. | |
| integer | Current fontsize | |
| string | Current font file |
Definition at line 1058 of file class.t3lib_stdgraphic.php.
References t3lib_div::inList(), t3lib_div::intExplode(), singleChars(), t3lib_TStemplate::sortedKeyList(), and t3lib_div::trimExplode().
Referenced by ImageTTFBBoxWrapper(), and ImageTTFTextWrapper().
| t3lib_stdGraphic::calcWordSpacing | ( | $ | conf, | |
| $ | scaleFactor = 1 | |||
| ) |
Calculates the spacing and wordSpacing values
| array | TypoScript array for the TEXT GIFBUILDER object | |
| integer | TypoScript value from eg $conf['niceText.']['scaleFactor'] |
Definition at line 1208 of file class.t3lib_stdgraphic.php.
Referenced by calcBBox(), fontResize(), and makeText().
| t3lib_stdGraphic::getTextScalFactor | ( | $ | conf | ) |
Calculates and returns the niceText.scaleFactor
| array | TypoScript array for the TEXT GIFBUILDER object |
Definition at line 1227 of file class.t3lib_stdgraphic.php.
References t3lib_div::intInRange().
Referenced by calcBBox().
| t3lib_stdGraphic::makeOutline | ( | &$ | im, | |
| $ | conf, | |||
| $ | workArea, | |||
| $ | txtConf | |||
| ) |
Implements the "OUTLINE" GIFBUILDER object / property for the TEXT object
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. | |
| array | The current working area coordinates. | |
| array | TypoScript array with configuration for the associated TEXT GIFBUILDER object. |
Definition at line 1262 of file class.t3lib_stdgraphic.php.
References $workArea, applyOffset(), circleOffset(), t3lib_div::intInRange(), and makeText().
Referenced by tslib_gifBuilder::make().
| t3lib_stdGraphic::circleOffset | ( | $ | distance, | |
| $ | iterations | |||
| ) |
Creates some offset values in an array used to simulate a circularly applied outline around TEXT
access private
| integer | Distance | |
| integer | Iterations. |
Definition at line 1291 of file class.t3lib_stdgraphic.php.
Referenced by makeOutline().
| t3lib_stdGraphic::makeEmboss | ( | &$ | im, | |
| $ | conf, | |||
| $ | workArea, | |||
| $ | txtConf | |||
| ) |
Implements the "EMBOSS" GIFBUILDER object / property for the TEXT object
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. | |
| array | The current working area coordinates. | |
| array | TypoScript array with configuration for the associated TEXT GIFBUILDER object. |
Definition at line 1315 of file class.t3lib_stdgraphic.php.
References $workArea, t3lib_div::intExplode(), and makeShadow().
Referenced by tslib_gifBuilder::make().
| t3lib_stdGraphic::makeShadow | ( | &$ | im, | |
| $ | conf, | |||
| $ | workArea, | |||
| $ | txtConf | |||
| ) |
Implements the "SHADOW" GIFBUILDER object / property for the TEXT object The operation involves ImageMagick for combining.
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. | |
| array | The current working area coordinates. | |
| array | TypoScript array with configuration for the associated TEXT GIFBUILDER object. |
Definition at line 1337 of file class.t3lib_stdgraphic.php.
References $workArea, applyOffset(), combineExec(), convertColor(), imagecopyresized(), imagecreate(), imageCreateFromFile(), imageMagickExec(), ImageWrite(), inputLevels(), t3lib_div::intExplode(), t3lib_div::intInRange(), makeText(), outputLevels(), randomName(), and v5_blur().
Referenced by tslib_gifBuilder::make(), and makeEmboss().
| t3lib_stdGraphic::makeBox | ( | &$ | im, | |
| $ | conf, | |||
| $ | workArea | |||
| ) |
Implements the "BOX" GIFBUILDER object
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. | |
| array | The current working area coordinates. |
Definition at line 1469 of file class.t3lib_stdgraphic.php.
References $workArea, convertColor(), t3lib_div::intExplode(), t3lib_div::intInRange(), objPosition(), and reduceColors().
Referenced by tslib_gifBuilder::make().
| t3lib_stdGraphic::makeEffect | ( | &$ | im, | |
| $ | conf | |||
| ) |
Implements the "EFFECT" GIFBUILDER object The operation involves ImageMagick for applying effects
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1491 of file class.t3lib_stdgraphic.php.
References applyImageMagickToPHPGif(), and IMparams().
Referenced by imagecopyresized(), tslib_gifBuilder::make(), and reduceColors().
| t3lib_stdGraphic::IMparams | ( | $ | setup | ) |
Creating ImageMagick paramters from TypoScript property
| string | A string with effect keywords=value pairs separated by "|" |
Definition at line 1506 of file class.t3lib_stdgraphic.php.
References t3lib_div::intExplode(), t3lib_div::intInRange(), v5_blur(), and v5_sharpen().
Referenced by makeEffect().
| t3lib_stdGraphic::adjust | ( | &$ | im, | |
| $ | conf | |||
| ) |
Implements the "ADJUST" GIFBUILDER object
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1589 of file class.t3lib_stdgraphic.php.
References autolevels(), inputLevels(), t3lib_div::intExplode(), and outputLevels().
Referenced by tslib_gifBuilder::make().
| t3lib_stdGraphic::crop | ( | &$ | im, | |
| $ | conf | |||
| ) |
Implements the "CROP" GIFBUILDER object
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1621 of file class.t3lib_stdgraphic.php.
References $workArea, convertColor(), copyGifOntoGif(), imagecreate(), t3lib_div::intExplode(), objPosition(), and setWorkArea().
Referenced by tslib_gifBuilder::make(), and tslib_gifBuilder::start().
| t3lib_stdGraphic::scale | ( | &$ | im, | |
| $ | conf | |||
| ) |
Implements the "SCALE" GIFBUILDER object
| pointer | GDlib image pointer | |
| array | TypoScript array with configuration for the GIFBUILDER object. |
Definition at line 1652 of file class.t3lib_stdgraphic.php.
References imageCreateFromFile(), imageMagickConvert(), ImageWrite(), randomName(), and setWorkArea().
Referenced by tslib_gifBuilder::make().
| t3lib_stdGraphic::setWorkArea | ( | $ | workArea | ) |
Implements the "WORKAREA" GIFBUILDER object when setting it Setting internal working area boundaries (->workArea)
| string | Working area dimensions, comma separated |
Definition at line 1684 of file class.t3lib_stdgraphic.php.
References $workArea, applyOffset(), and t3lib_div::intExplode().
Referenced by crop(), tslib_gifBuilder::make(), scale(), and tslib_gifBuilder::start().
| t3lib_stdGraphic::autolevels | ( | &$ | im | ) |
Apply auto-levels to input image pointer
| integer | GDlib Image Pointer |
Definition at line 1725 of file class.t3lib_stdgraphic.php.
Referenced by adjust().
| t3lib_stdGraphic::outputLevels | ( | &$ | im, | |
| $ | low, | |||
| $ | high, | |||
| $ | swap = '' | |||
| ) |
Apply output levels to input image pointer (decreasing contrast)
| integer | GDlib Image Pointer | |
| integer | The "low" value (close to 0) | |
| integer | The "high" value (close to 255) | |
| boolean | If swap, then low and high are swapped. (Useful for negated masks...) |
Definition at line 1756 of file class.t3lib_stdgraphic.php.
References t3lib_div::intInRange().
Referenced by adjust(), and makeShadow().
| t3lib_stdGraphic::inputLevels | ( | &$ | im, | |
| $ | low, | |||
| $ | high, | |||
| $ | swap = '' | |||
| ) |
Apply input levels to input image pointer (increasing contrast)
| integer | GDlib Image Pointer | |
| integer | The "low" value (close to 0) | |
| integer | The "high" value (close to 255) | |
| boolean | If swap, then low and high are swapped. (Useful for negated masks...) |
Definition at line 1788 of file class.t3lib_stdgraphic.php.
References t3lib_div::intInRange().
Referenced by adjust(), and makeShadow().
| t3lib_stdGraphic::reduceColors | ( | &$ | im, | |
| $ | limit, | |||
| $ | cols | |||
| ) |
Reduce colors in image dependend on the actual amount of colors (Only works if we are not in truecolor mode)
| integer | GDlib Image Pointer | |
| integer | The max number of colors in the image before a reduction will happen; basically this means that IF the GD image current has the same amount or more colors than $limit define, THEN a reduction is performed. | |
| integer | Number of colors to reduce the image to. |
Definition at line 1819 of file class.t3lib_stdgraphic.php.
References makeEffect().
Referenced by imagecopyresized(), makeBox(), makeText(), output(), and tslib_gifBuilder::start().
| t3lib_stdGraphic::IMreduceColors | ( | $ | file, | |
| $ | cols | |||
| ) |
Reduce colors in image using IM and create a palette based image if possible (<=256 colors)
| string | Image file to reduce | |
| integer | Number of colors to reduce the image to. |
Definition at line 1832 of file class.t3lib_stdgraphic.php.
References imageMagickExec(), t3lib_div::intInRange(), randomName(), and t3lib_div::split_fileref().
Referenced by output().
| t3lib_stdGraphic::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 t3lib_stdGraphic::prependAbsolutePath()
| string | The font file |
Definition at line 1875 of file class.t3lib_stdgraphic.php.
References t3lib_div::isAbsPath(), and t3lib_div::resolveBackPath().
Referenced by ImageTTFBBoxWrapper(), ImageTTFTextWrapper(), and makeText().
| t3lib_stdGraphic::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.
| integer | The sharpening factor, 0-100 (effectively in 10 steps) |