r100579 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100578‎ | r100579 | r100580 >
Date:04:45, 24 October 2011
Author:tstarling
Status:ok
Tags:
Comment:
Updated documentation of $wgMaxImageArea for r99911 etc.
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -679,9 +679,17 @@
680680 $wgAllowTitlesInSVG = false;
681681
682682 /**
683 - * Don't thumbnail an image if it will use too much working memory.
684 - * Default is 50 MB if decompressed to RGBA form, which corresponds to
685 - * 12.5 million pixels or 3500x3500
 683+ * The maximum number of pixels a source image can have if it is to be scaled
 684+ * down by a scaler that requires the full source image to be decompressed
 685+ * and stored in decompressed form, before the thumbnail is generated.
 686+ *
 687+ * This provides a limit on memory usage for the decompression side of the
 688+ * image scaler. The limit is used when scaling PNGs with any of the
 689+ * built-in image scalers, such as ImageMagick or GD. It is ignored for
 690+ * JPEGs with ImageMagick, and when using the VipsScaler extension.
 691+ *
 692+ * The default is 50 MB if decompressed to RGBA form, which corresponds to
 693+ * 12.5 million pixels or 3500x3500.
686694 */
687695 $wgMaxImageArea = 1.25e7;
688696 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99911Per bug 28135, disable $wgMaxImageArea check when transforming using a hook, ...btongminh20:36, 15 October 2011

Status & tagging log