[OSM-talk] SVG support on wiki?

frankie roberto frankie at frankieroberto.com
Sun Jul 22 19:28:14 BST 2007


> If this is enabled, then it is probable that SVG containing script will not
> be permitted.

I think this must have been resolved for Wikipedia, eg see this thread
from 2005: http://lists.wikimedia.org/pipermail/wikitech-l/2005-March/015968.html

I'm not sure how this was finally implemented, but
http://www.mediawiki.org/wiki/Manual:Image_Administration says:

"MediaWiki supports SVG image rendering: if enabled, SVG images can be
used like other image files; they will automatically be rendered as a
PNG file on demand. To enable SVG support:

First, allow upload of SVG files in the LocalSettings.php file:
$wgFileExtensions[] = 'svg'; Note that MediaWiki will refuse SVG files
containing JavaScript, for security reasons. To avoid some false
positives, set $wgAllowTitlesInSVG = true;. If you get an error saying
the file is corrupt, make sure mime type detection is working
properly."


Enabling SVG files on the wiki might be a good way of encouraging new
users to have a play with some of our data, perhaps even creating
custom maps with beautiful cartography.

Frankie




More information about the talk mailing list