* Added $wgUseTwoButtonsSearchForm to choose the Search form behavior/look
* Added $wgNoFollowDomainExceptions to allow exempting particular domain names
from rel="nofollow" on external links
+* (bug 12970) Added $wgForceClientThumbnails to force client rendering of thumbs,
+ instead of falling back to GD.
=== New features in 1.15 ===
/** Obsolete, always true, kept for compatibility with extensions */
$wgUseImageResize = true;
+/**
+ * Use this if you have issues using gd for image thumbnails--like with
+ * safe_mode--and want to force thumbnailing to users. Not needed for most
+ * installs. See bug 12970.
+ */
+$wgForceClientThumbnails = false;
/** Set $wgCommandLineMode if it's not set already, to avoid notices */
if( !isset( $wgCommandLineMode ) ) {
function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
global $wgUseImageMagick, $wgImageMagickConvertCommand, $wgImageMagickTempDir;
- global $wgCustomConvertCommand;
+ global $wgCustomConvertCommand, $wgForceClientThumbnails;
global $wgSharpenParameter, $wgSharpenReductionThreshold;
global $wgMaxAnimatedGifArea;
$scaler = 'im';
} elseif ( $wgCustomConvertCommand ) {
$scaler = 'custom';
+ } elseif( $wgForceClientThumbnails ) {
+ $scaler = 'client';
} elseif ( function_exists( 'imagecreatetruecolor' ) ) {
$scaler = 'gd';
} else {