DiaVisViewPlugin - Renders dia and vdx files
Description
This has taken the original DiaView? and modified it for use with Trac 0.11, and at the same time included support for vdx and compressed files.
It has had very little testing. It has been set up as a separate hack to the original DiaView? so as not to break DiaView? for Trac < 0.11.
If the width was changed in the macro argument the displayed image would scale, however the source file stayed the same. To overcome this the width is checked using the image library, and if different it is re-rendered. Please see the link below for the image library.
http://www.pythonware.com/products/pil/
Bugs/Feature Requests
Existing bugs and feature requests for DiaVisViewPlugin are here.
If you have any issues, create a new ticket.
Download and Source
Download the zipped source, check out using Subversion, or browse the source with Trac.
Example
To install download the archive, then either $ python setup.py install or copy it to the plugins directory of the particular project
Do not forget to enable the macro in trac.ini in the components section like this:
diavisview.* = enabled
Also ensure that dia (diagram editor) and the Python Imaging Library (cf. link above) are installed.
Attach a file you wish to display to the page as per normal. The files can be either dia or vdx, compressed or uncompressed.
Make suitable macro entries in the page. If a number is given after the filename it will be taken as the width. Please see the main image macro for all the options.
[[DiaVisView(Diagram1.dia)]]
[[DiaVisView(Diagram2.vdx, border=5)]]
Thanks to arkemp for the original.
Recent Changes
[3574] by robert_martin on 04/29/08 13:07:09
Uses the image library to update the width of the image if it's changed.
[3573] by robert_martin on 04/29/08 10:59:28
Import of DiaVisView?.
[3572] by robert_martin on 04/29/08 10:44:20
New hack DiaVisViewPlugin, created by robert_martin
Author/Contributors
Author: robert_martin
Contributors:
Attachments
- DiaVisViewPlugin.zip (13.1 kB) - added by robert_martin on 04/29/08 13:12:41.