Display SVG image on Trac pages

Notice: TracImageSvgMacro is deprecated. SVG files can be rendered in modern browsers using Trac's Image macro.


This is a macro that allows you to display a SVG image in Trac wiki pages and in tickets using the ImageSvg macro. This macro can run in Trac 0.10 and 1.0.

This macro is to be used as follows:

  1. Upload svg files to a wiki page or a ticket, eg: Warning.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:

Bugs/Feature Requests

Existing bugs and feature requests for TracImageSvgMacro are here.

If you have any issues, create a new ticket.


9 / 9


1 / 1


Download the zipped source from here.


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


  • For Trac 0.10, please see here.
  • For Trac 0.11, please see here.

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
Maintainer: Richard Liao
Contributors: nmadura

See:ZoomQuiet ~ Collection KSPEG Trac hacking

Last modified 5 months ago Last modified on Mar 8, 2018, 5:01:58 AM

Attachments (1)

Download all attachments as: .zip