Manual talk:$wgMaxShellMemory

Error creating thumbnail: Invalid thumbnail parameters
This particular code was discussed in detail here: http://www.gossamer-threads.com/lists/wiki/mediawiki/169439 as fixing imagemagick problems. Adamtheclown 22:24, 17 January 2011 (UTC)
 * This line can be added to the end of LocalSettings.php. Adamtheclown 00:31, 21 February 2011 (UTC)

Please change default to something that WORKS
The default value of $wgMaxShellMemory in MW1.19.2 is too low for SVG thumbnail rendering. Please change the default value to one that consistently works on most servers, say 300000K.

The Error message produced by a value too low is far too obtuse: Error creating thumbnail: ERROR: meta.c (179): wmf_header_read: this isn't a wmf file convert: Delegate failed `"wmf2svg" -o "%o" "%i"'. convert: unable to open image `/tmp/magick-XXn4EQJ3': No such file or directory. convert: unable to load module `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/svg.la': libdbus-1.so.3: failed to map segment from shared object: Cannot allocate memory. convert: unable to open file `/tmp/magick-XXn4EQJ3': No such file or directory. convert: missing an image filename `PNG:/tmp/transform_402f06e-1.png'.

Setting $wgMaxShellMemory to 300000 FIXED IT. (Thanks folks on Mediawiki-l for the tip! I would never have thought of this!)

A comment in MW-generated LocalSettings.php suggesting "Set $wgMaxShellMemory = 300000; when you allow SVG uploads" might help. --Rogerhc (talk) 19:29, 31 October 2012 (UTC)