%SVG{"drawing" parameters}%
drawing is the filename of an attached SVG image.
| Parameter | Description | Default value |
|---|---|---|
size | the maximum size of the picture. The picture will be generated do fit in this size. SvgPlugin will generate a picture the fits best in the given size, without distorting the image. | DEFAULTSIZE setting below |
topic | The topic to which the drawing is attached. Can be TheTopic or Web.TheTopic | current topic |
| You type: | You should get: | You get (if installed): |
|---|---|---|
%SVG{"TWikiBrasil.svg"}% |
|
%SVG{"TWikiBrasil.svg"}% |
%SVG{"TWikiBrasil.svg" size="400x300"}% |
|
%SVG{"TWikiBrasil.svg" size="400x300"}% |
%SVG{}% |
SvgPlugin: you must specify a drawing to display! | %SVG{}% |
%SVG{"TWikiBrasil.svg" topic="Main.AntonioTerceiro"}% |
SvgPlugin: can't find drawing TWikiBrasil.svg attched at Main/AntonioTerceiro. | %SVG{"TWikiBrasil.svg" topic="Main.AntonioTerceiro"}% |
%<plugin>_<setting>%, i.e. %SVGPLUGIN_SHORTDESCRIPTION%
data/debug.txt) Image::LibRSVG Perl module.
SvgPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/SvgPlugin.txt | Plugin topic |
lib/TWiki/Plugins/SvgPlugin.pm | Plugin Perl module |
pub/TWiki/SvgPlugin/TWikiBrasil.svg | Sample SVG drawing |
pub/TWiki/SvgPlugin/TWikiBrasil-320-200.png | Sample picture |
pub/TWiki/SvgPlugin/TWikiBrasil-400x300.png | Sample picture |
| Plugin Author: | TWiki:Main.AntonioTerceiro |
| Copyright: | © 2004 TWiki:Main.AntonioTerceiro © 2008-2011 TWiki:TWiki.TWikiContributor |
| License: | GPL (GNU General Public License) |
| Plugin Version: | 2011-04-06 |
| Change History: | |
| 2011-04-06: | TWikibug:Item6638: Doc improvements -- TWiki:Main.PeterThoeny |
| 2004-10-05: | Initial version |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.000 |
| CPAN Dependencies: | CPAN:Image::LibRSVG |
| Other Dependencies: | librsvg headers, if needed to compile Image::LibRSVG, and librsvg |
| Perl Version: | tested with 5.8.4 |
| TWiki:Plugins/Benchmark: | GoodStyle nn%, FormattedSearch nn%, SvgPlugin nn% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/SvgPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/SvgPluginDev |
| PackageForm | |
|---|---|
| TopicClassification | PluginPackage |
| TestedOnTWiki | 5.1, 5.0, 4.3, 4.2, 4.1, 4.0.0, 01 Sep 2004 |
| TestedOnOS | OsLinux |
| ShouldRunOnOS | AnyOS |
| InstalledOnTWikiOrg | No |
| DemoUrl | |
| DevelopedInSVN | Yes |
| ModificationPolicy | PleaseFeelFreeToModify |
| RelatedTopics | |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
SvgPlugin.md5 | manage | 0.1 K | 2011-04-07 - 05:17 | PeterThoeny | |
| |
SvgPlugin.tgz | manage | 37.3 K | 2011-04-07 - 05:17 | PeterThoeny | |
| |
SvgPlugin.zip | manage | 37.2 K | 2011-04-07 - 05:17 | PeterThoeny | |
| |
SvgPlugin_installer | manage | 3.5 K | 2011-04-07 - 05:17 | PeterThoeny |