Forum OpenACS Development: Re: SVG on AOLServer

Collapse
4: Re: SVG on AOLServer (response to 1)
Posted by Jade Rubick on
Matthew, can describe exactly what you did to get an SVG file working? It would be nice to have this for future reference, and I might link it in to the FAQ.
Collapse
5: Re: SVG on AOLServer (response to 4)
Posted by Matthew Taylor on
Sure Jade,
I did the following:

1. Added svg mime type to config.tcl file at "ns_section ns/mimetypes" like so
ns_param  .svg              image/svg+xml

2. Then to view a SVG file it needs to be referenced like so
<EMBED SRC="filename.svg" NAME="SVGEmbed" HEIGHT=400 WIDTH=100%
TYPE="image/svg+xml" PLUGINSPAGE="http://www.adobe.com/svg/viewer/install/">

Hope this helps

Matt