It's better when it's simple

User Tools

Site Tools


SVG Plugin

Compatible with DokuWiki


plugin Renders inline SVG images using several different methods

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with diagram, images, media, svg


The SVG plugin provides a variety of methods for embedding SVG images directly within your wiki pages.

For more information please see the project page at

Installation Requirements:

This module is designed to work under many different situations and installation environments. There are only a few true requirements for installation, and the rest are optional as they are purely used for feature enhancements.

PHP Version

It is recommended that PHP 5 or greater be used when running this plugin, however it should work with PHP 4.3.0 and up.


Plugin:svg utilizes various extensions to provide SVG format support and parsing. The following extensions are required in order for the svg plugin to work:

  • xml (automatically installed unless explicitly disabled with the '–disable-xml' configuration directive)

There are a few extensions that are optional and can provide additional functionality to the svg plugin. These extensions are:

  • imagick (provides ImageMagick / GraphicsMagick support)
  • magickwand (provides ImageMagick support)


This will be added shortly. For now here is a basic idea of the syntax:

<!-- insert svg code here (be sure to start with <?xml version="... etc.) -->

Future Plans

  • Add support for the built-in GD library as an alternative to ImageMagick/GraphicsMagick

Known Bugs

  • [ FIXED ] Upon installing the plugin, page=config causes a blank page to be displayed until the plugin is removed.


Please leave any comments you have about the plugin here.

from err404:
when i install svg plugins, i can't do page=config , i obtain blank page.
when i deactivate svg plugin in page=plugin, i obtain a same blank page.
for normal operation in page=config, i need remove svg plugin from page=plugin
i use dokuwiki-2007-06-26b. and i am french, (sorry about my aproximative translation).

from Austen:
This has been fixed in the recent update.
There was a syntax error in my PHP that caused the script to die prematurely on the config page.
Sorry for the delay in this bugfix.

from Err404:

your plugin is conflict with another svg plugin: svgpureinsert

but i want use theses two plugin, one to insert svg file image (other plugin), and second to insert svg code in source page (your plugin).

i think is a conflict name.

i propose you to rename svg folder to svgcode

plugin/svg.txt · Last modified: 2023-10-30 23:50 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki