Back to the main page.

Bug 677 - SVG figures sometimes fail on wiki

Reported 2011-05-19 14:01:00 +0200
Modified 2011-07-05 15:12:51 +0200
Product: FieldTrip
Component: documentation
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 normal
Assigned to: Eelke Spaak
Depends on:
See also:

Eelke Spaak - 2011-05-19 14:01:30 +0200

With the cryptic error message: "You want to set non numeric width or height..." For instance, see here:

Eelke Spaak - 2011-05-20 10:48:27 +0200

Lilla, what software did you use to generate your SVG file? I think it is a compressed SVG file, or "SVGZ" file. Our SVG plugin only supports non-compressed SVG files at present. I could extend the plugin to also support compressed files, but I think it's easier to just only use non-compressed ones. I re-exported your image using Adobe Illustrator, and it works. The filesize did get quite large, though (>500 kB). This is probably due to something weird I noticed in your file: the blue rectangles are composed of very many tiny squares, almost as if it has been generated from a pixel image, where every pixel was converted to a separate vector square. If you recreate the image (including the blue rectangles) in Illustrator, everything should be fine.