Display svg image in wiki, tickets
Table of Contents
SEE:ZoomQuiet ~ Collection KSPEG Trac hacking
Description
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
Download the zipped source from here.
Source
You can check out TracImageSvgMacro from here using Subversion, or browse the source with Trac.
Install
You can install this software as normal Trac plugin.
- Uninstall Trac Image SVG macro if you have installed before.
- Change to the directory containning setup.py.
- If you want to install this plugin globally, that will install this plugin to the python path:
- python setup.py install
- If you want to install this plugin to trac instance only:
- python setup.py bdist_egg
- copy the generated egg file to the trac instance's plugin directory
cp dist/*.egg /srv/trac/env/plugins
- Config trac.ini:
[components] imagesvg.* = enabled
- copy ImageSvg.py to trac environment wiki-macros directory
cp wiki-macros/ImageSvg.py /srv/trac/env/wiki-macros
Example
- Upload svg files to wiki or ticket, eg: example.svg
- Display svg image in wiki page TopPage/SubPage
- Display right in TopPage/SubPage:
[[ImageSvg(example.svg)]]
- Display in other pages or tickets:
[[ImageSvg(wiki:TopPage/SubPage:example.svg)]]
- Display right in TopPage/SubPage:
- Display svg image in ticket 123
- Display right in ticket 123:
[[ImageSvg(example.svg)]]
- Display in other wiki pages or tickets which reference svg attachment of ticket 123:
[[ImageSvg(ticket:123:example.svg)]]
- Display right in ticket 123:
Recent Changes
[4765] by richard on 11/11/08 02:00:39
fix svg file url
[4764] by richard on 11/11/08 01:38:47
add ImageSvgMacro? for trac 0.11
[4468] by richard on 10/13/08 01:57:04
delete 0.11
[4467] by richard on 10/13/08 01:56:36
Add tracimagesvg macro
Author/Contributors
Author: richard
Contributors: