* (bug 912) Search box easier to reach in text browsers (lynx, links)
* $wgParserCacheExpireTime added
* Skip loading of RecentChange.php except where needed
+* Enforce $wgSVGMaxSize when rendering, even for SVGs with a very large source
+ size. This is necessary to limit server memory usage.
=== Caveats ===
$wgSVGConverter = 'ImageMagick';
/** If not in the executable PATH, specify */
$wgSVGConverterPath = '';
-/** Don't scale a SVG larger than this unless its native size is larger */
+/** Don't scale a SVG larger than this */
$wgSVGMaxSize = 1024;
/**
* Don't thumbnail an image if it will use too much working memory
return null;
}
- $maxsize = $this->mustRender()
- ? max( $this->width, $wgSVGMaxSize )
- : $this->width - 1;
+ # Don't make an image bigger than the source, or wgMaxSVGSize for SVGs
+ $maxsize = $this->mustRender() ? $wgSVGMaxSize : $this->width - 1;
if( $width > $maxsize ) {
- # Don't make an image bigger than the source
$thumb = new ThumbnailImage( $this->getViewURL(), $this->getWidth(), $this->getHeight() );
wfProfileOut( $fname );
return $thumb;