wiki:DiaVisViewPlugin

Version 20 (modified by Ryan J Ollos, 8 years ago) (diff)

Simplify text.

Render dia and vdx files

Notice: This plugin is unmaintained and available for adoption.

Description

Renders DIA and MS Visio VDX diagrams attached to Trac resources.

If the width is changed in the macro argument the image is re-rendered using pillow.

Bugs/Feature Requests

Existing bugs and feature requests for DiaVisViewPlugin are here.

If you have any issues, create a new ticket.

defect

5 / 7

enhancement

7 / 8

task

0 / 1

Download and Source

Download the [download:diavisviewplugin zipped source], check out using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

The plugin is enabled with the following edit to the [components] section of trac.ini:

[components]
diavisview.* = enabled

Example

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. The width can be specified as a second argument. Additional optional arguments are described in the Image macro help.

[[DiaVisView(Diagram1.dia)]]

[[DiaVisView(Diagram2.vdx, border=5)]]

Recent Changes

15900 by rjollos on 2016-09-16 03:57:34
0.3dev: Make compatible with Trac 1.0

  • Use Pillow rather than PIL
  • Add Pillow to install requirements
  • Make path to Dia binary configurable from trac.ini
  • Allow Dia's output filter to be set in trac.ini
  • Support options for non-png renders
  • Refactor to split a long method somewhat
  • Fix the output html element being <p> instead <a>
  • Move RE compilation out of the macro expansion
  • Do not check width if not needed

Most of the changes provided by jaroslav.benkovsky@…

Refs #12529.

14916 by rjollos on 2015-10-11 20:46:19
0.2dev: Tag build as dev.

Refs #12529.

14915 by rjollos on 2015-10-11 20:44:25
0.2dev: Branch for Trac 1.0 support.

Refs #12529.

(more)

Author/Contributors

Author: robert_martin
Maintainer: none (needsadoption)
Contributors: arkemp