On 31/10/12 16:08, roger(a)rogerchrisman.com wrote:
I am getting this error instead of a thumbnail
rendering of SVG files on my
MediaWikis:
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'.
Why is MediaWiki trying to treat the SVG as a "wmf" file?
It's not, that's just convert checking to see if the file is a WMF
file, which it isn't, so that's all fine. It then runs out of memory.
You can increase $wgMaxShellMemory to fix it.
-- Tim Starling