WARNING: This extension isn't maintained and has got serious security problems. Please do not use!!!
WikiDrawPlugin
create or annotate images and save as svg and png
Usage
WikiDrawPlugin uses
SVG-edit (trunk svn from 29/09/2010 - pre2.6) to provide quick and easy drawing or annotation of images.
WARNING: editing not compatible with InternetExplorer - but viewing of the drawings works correctly
Syntax Rules
Warning: Can't find topic System.VarWIKIDRAW
save drawing as attachment to current topic
%WIKIDRAW{
"drawing"
annotate="http://somewhere.onthenet.com/some_image.png"
}%
WikiDraw also can save the svg source for the drawing as the text of a topic - allowing searching and hand editing of that source, while continuing to provide the wysiwyg editing facility.
%WIKIDRAW{
"Sandbox.WikiDrawing"
annotate="Sandbox.SomeImage/some_image.png"
}%
If
Foswiki:Extensions.ImagePlugin is installed and enabled, the default skin template will automatically use it to lay out the image and drawing.
Technical details
This plugin adds a ext-foswiki.js extension that over-rides the built in 'Save Image' SVG menu item with a save to foswiki handler,
which generates a png version of the overlay, and sends that, and the svg source to foswiki.
The transparent overlay png is displayed in view mode, and the annotated image (if any) will be put behind it using the css background.
Known issues:
- it really doesn't like using svg dimensions other than 640x480 (I'e reported an issue for this, as its really painful when creating a drawing)
- hide the edit buttons for ie..
- _DEFAULT="Web.Topic/something" is very broken
-
strikeone
support
- comment support..
- wow. subtle bug. - using
%!WIKIDRAW{Sandbox.SomeTopic}%
, will find the first image attached to BASETOPIC, which might be a tad surprising.
features to be added?
- can we diff the svg's ?
Installation Instructions
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Info
Many thanks to the following sponsors for supporting this work:
- TRIN, The Taxonomic Information Network for Australian National Biodiversity Research