Table of Contents
Files SVG Plugin
Compatible with DokuWiki
2007-06-26 > 2006-11-06
This extension is marked as obsoleted. Therefore it is hidden in the Extension Manager and the extension listing. Furthermore, it is candidate for removal.
The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to svgimg2
This module is designed to work under many different situations and installation environments. There are only a few true requirements for installation.
It is recommended that PHP 5 or greater be used when running this plugin, however it should work with PHP 4.3.0 and up.
The plugins need inkscape or convert (ImageMagick with SVG support) programs.
Inkscape is the default because it does a better conversion than convert.
Simply untar file in lib/plugins directory.
Add the line
conf/mime.conf file : to support upload of SVG files.
If you use Inkscape you need to have gnome-vfs2 installed. You need to create .inkscape and .gnome2 directory in Apache home directory and set own for him.
Example : (depend on your distribution) cd /var/www mkdir .inkscape mkdir .gnome2 chown apache: .inkscape .gnome2
To use convert instead :
lib/plugins/svgimg/resizeimg.php and comment line
$cmd=sprintf(“inkscape .. and uncomment line above
How this works
cache/svg directory. If it is already in cache the conversion is not done twice.
By default the width of converted image is 100px. You can change the size with the common DokuWiki image syntax
conf/mime.conf I would use
conf/mime.local.conf instead to preserve the mime between upgrades. Scott
If you use convert instead of Inkscape: There are two lines starting with
$cmd=sprintf(“convert . Uncomment the lower line and make sure you comment out the whole command
$cmd=sprintf(“inkscape (it's split over three lines):
//$cmd=sprintf("convert -thumbnail %d %s %s",$size,escapeshellarg($source), escapeshellarg($dest)); //$cmd=sprintf("inkscape -z --export-width=%d %s --export-png=%s>/dev/null", // $size, // escapeshellarg($source), // escapeshellarg($dest)); $cmd=sprintf("convert -scale %dx%d $source $dest",$size,$size);