Difference between revisions of "Reference:NativeSvgHandler"

(Created page with "The '''NativeSvgHandler''' extension allows SVG files to by served directly to clients for client-side rendering. ==<span id="Installation" class="mw-headline">Installation...")
 
(Installation[edit])

The NativeSvgHandler extension allows SVG files to by served directly to clients for client-side rendering.

Installation[<a href="https://www.mediawiki.org/w/index.php?title=Extension:NativeSvgHandler&action=edit&section=1" title="Edit section: Installation">edit][edit | edit source]

  • Download and place the file(s) in a directory called NativeSvgHandler in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span

require_once "$IP/extensions/NativeSvgHandler/NativeSvgHandler.php"

class="s2">/extensions/NativeSvgHandler/NativeSvgHandler.php"

</span><span class="p">

;

</span>

 Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


Attachments

Discussions