Bug #25051 ยป 17606.patch
t3lib/class.t3lib_stdgraphic.php (working copy) | ||
---|---|---|
var $truecolor = TRUE; // Internal variable which get's used to determine wheter GDlib should use function truecolor pendants, @deprecated as of TYPO3 4.4, as this variables is now always set (GDlib2 always has this method, and PHP recommends to only use imagecreatetruecolor() over imagecreate())
|
||
var $png_truecolor = FALSE; // Set to true if generated png's should be truecolor by default
|
||
var $truecolorColors = 0xffffff; // 16777216 Colors is the maximum value for PNG, JPEG truecolor images (24-bit, 8-bit / Channel)
|
||
var $TTFLocaleConv = ''; // Used to recode input to TTF-functions for other charsets. Deprecated since TYPO3 3.6, will be removed in TYPO3 4.6
|
||
var $enable_typo3temp_db_tracking = 0; // If set, then all files in typo3temp will be logged in a database table. In addition to being a log of the files with original filenames, it also serves to secure that the same image is not rendered simultaneously by two different processes.
|
||
var $imageFileExt = 'gif,jpg,jpeg,png,tif,bmp,tga,pcx,ai,pdf'; // Commalist of file extensions perceived as images by TYPO3. List should be set to 'gif,png,jpeg,jpg' if IM is not available. Lowercase and no spaces between!
|
||
var $webImageExt = 'gif,jpg,jpeg,png'; // Commalist of web image extensions (can be shown by a webbrowser)
|
||
... | ... | |
if ($gfxConf['gdlib_png']) {
|
||
$this->gifExtension = 'png';
|
||
}
|
||
if ($gfxConf['TTFLocaleConv']) {
|
||
$this->TTFLocaleConv = $gfxConf['TTFLocaleConv'];
|
||
}
|
||
if ($gfxConf['enable_typo3temp_db_tracking']) {
|
||
$this->enable_typo3temp_db_tracking = $gfxConf['enable_typo3temp_db_tracking'];
|
||
}
|
||
... | ... | |
$string = $this->csConvObj->utf8_encode($string, $this->nativeCharset); // Convert to UTF-8
|
||
}
|
||
// Recode string accoding to TTFLocaleConv. Deprecated.
|
||
if ($this->TTFLocaleConv) {
|
||
t3lib_div::deprecationLog('The option $TYPO3_CONF_VARS[\'GFX\'][\'TTFLocaleConv\'] is in use, but deprecated since TYPO3 3.6, will be removed in TYPO3 4.6. Make sure to unset this variable in your typo3conf/localconf.php and use a different way to encode your string.');
|
||
list($from, $to) = t3lib_div::trimExplode('..', $this->TTFLocaleConv, TRUE);
|
||
$string = $this->csConvObj->conv($string, $from, $to);
|
||
}
|
||
return $string;
|
||
}
|
||
t3lib/config_default.php (working copy) | ||
---|---|---|
'im_useStripProfileByDefault' => TRUE, // Boolean: If set, the im_stripProfileCommand is used with all IM Image operations by default. See tsRef for setting this parameter explocit for IMAGE generation.
|
||
'jpg_quality' => 70, // Integer: Default JPEG generation quality
|
||
'enable_typo3temp_db_tracking' => FALSE, // Boolean: If set, then all files in typo3temp will be logged in a database table. In addition to being a log of the files with original filenames, it also serves to secure that the same image is not rendered simultaneously by two different processes.
|
||
'TTFLocaleConv' => '', // String: Enter locale conversion string used to recode input to TrueType functions. Eg. 'cp1250..UTF-8'. Deprecated from ver. 3.6.0 of TYPO3. Set up <a href="#BE-forceCharset">[BE][forceCharset]</a> as strings are automatically converted from database charset to UTF-8.
|
||
'TTFdpi' => 72, // Integer: Enter how many dpi the FreeType module uses. Freetype1 should be set to 72. Freetype2 should be set to 96 (otherwise fonts are rendered way bigger than FreeType1). This works as a global scaling factor for Freetype.
|
||
'png_truecolor' => FALSE, // Boolean: If set PNGs will get created as truecolor PNGs. If you use GDlib2 you can create truecolor images if they look not well currently. Note that this results in an increased image size. JPEGs get always created in truecolor now (GDlib2 required)
|
||
),
|