This server will be upgraded at 3pm Sydney time on December 3rd (December 2nd, 8pm PST) and will be down for up to 30 minutes.

SVG Image User Macro

Author James Mortimer
Name svg image user macro
Version 1
Product Versions Developed on 2.1.5
Author(s) James Mortimer
Homepage n/a
Price free
License none
JavaDocs n/a
IssueTracking here
Download JAR n/a
Download Source inline below
Alternative SVG Macro Available
While unconfirmed, it is possible that the SVG Image Macro can display SVGs in PDF exports while this one cannot.

A simple user macro to embed scalable vector graphics in wiki pages. You need to install a browser plugin, such as Adobe, to get it to work. We found that using the simple image embed, !image.svg! did not work properly.

Usage Examples

{svg:attachemnt.svg}
{svg:attachemnt.svg|<width>|<height>}
{svg:attachemnt.svg|500|500}

Code

Create a user macro with no body called "svg"

#if($param1)
#set($width=$param1)
#else
#set($width=500)
#end
#if($param2)
#set($height=$param2)
#else
#set($height=500)
#end
<embed class="SVG" name="SVG" width="$width" height="$height" src="${config.getDomainName()}/download/attachments/${content.getIdAsString()}/${param0}">

Labels

plugin plugin Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 24, 2006

    Ivan Benko says:

    I could not get this macro working on 2.2.8 at all. Also there is reported probl...

    I could not get this macro working on 2.2.8 at all.
    Also there is reported problem with exporting to PDF http://forums.atlassian.com/thread.jspa?messageID=257235843#257235843

  2. Jun 07, 2007

    Niki Covalt says:

    Where would I find the adobe browser plugin?

    Where would I find the adobe browser plugin?

    1. Feb 11, 2008

      Jean-Baptiste Catté says:

      Here: Adobe - SVG Plugin