Version 5 (modified by Richard Liao, 10 years ago) (diff)


Display svg image in wiki, tickets

SEE:ZoomQuiet ~ Collection KSPEG Trac hacking


Display svg image in wiki, tickets using ImageSvg macro. This macro can run in trac 0.10.

Bugs/Feature Requests

Existing bugs and feature requests for TracImageSvgMacro are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:tracimagesvgmacro here].


You can check out TracImageSvgMacro from here using Subversion, or browse the source with Trac.


You can install this software as normal Trac plugin.

  1. Uninstall Trac Image SVG macro if you have installed before.
  1. Change to the directory containning
  1. If you want to install this plugin globally, that will install this plugin to the python path:
    • python install
  1. If you want to install this plugin to trac instance only:
    • python bdist_egg
    • copy the generated egg file to the trac instance's plugin directory
      cp dist/*.egg /srv/trac/env/plugins
  1. Config trac.ini:
    imagesvg.* = enabled
  1. copy to trac environment wiki-macros directory
    cp wiki-macros/ /srv/trac/env/wiki-macros


  1. Upload svg files to wiki or ticket, eg: example.svg
  2. Display svg image in wiki page TopPage/SubPage
    • Display right in TopPage/SubPage:
    • Display in other pages or tickets:
  3. Display svg image in ticket 123
    • Display right in ticket 123:
    • Display in other wiki pages or tickets which reference svg attachment of ticket 123:

Recent Changes

12393 by richard on 2012-11-28 01:33:11
Add support for trac 1.0, apply patch from nmadura, see #10659
8063 by richard on 2010-06-03 01:05:42
fixed #7183 , support float width, height
6728 by richard on 2009-10-16 02:33:58
specify the width and height of the image, by Nathaniel


Author: richard

Attachments (1)

Download all attachments as: .zip