svgpngmediawikirsvg

Invalid svg to png conversion via rsvg in mediawiki


While uploading this file to my wiki instance, application uses librsvg to convert it into png thumbnails. But the result is like this Link

This dragon seems to be generated in Inkscape, so i tried to use inkscape as a converter. It worked for this image (but not for some others), but it has X dependencies, so I cannot use it.

Here I found, that wikimedia projects use rsvg for such conversions.

Can anyone help me with this strange behavior?

Mediawiki settings for svg support:

# Svg support
$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;
$wgSVGConverter = 'rsvg';

Environment:

CentOS release 5.6 (Final)
rsvg version 2.16.1

Solution

  • The answer is damn simple — librsvg library was too old. 2.22.3+ solves this issue.