Jump to content

[Solved] SVGs not being thumbnailed properly


Safiria

Recommended Posts

When I try to view a thumbnail autogenerated from an SVG in MediaWiki, I get the following error:

 

Error creating thumbnail: sh: rsvg: command not found

convert: delegate failed `"rsvg" "%i" "%o"' @ error/delegate.c/InvokeDelegate/1061.

convert: unable to open image `/tmp/magick-XXj8AMD5': @ error/blob.c/OpenBlob/2514.

convert: unable to load module `/usr/lib64/ImageMagick-6.6.3/modules-Q16/coders/svg.la': librsvg-2.so.2: cannot open shared object file: No such file or directory @ error/module.c/OpenModule/1276.

convert: unable to open file `/tmp/magick-XXj8AMD5': @ error/constitute.c/ReadImage/571.

convert: missing an image filename `PNG:/home/safiria/public_html/wiki/images/thumb/e/ec/CoA_Safirian_Government.svg/523px-CoA_Safirian_Government.svg.png' @ error/convert.c/ConvertImageCommand/2970.

Link to comment
Share on other sites

That looks like a shell command:

rsvg %i %o

 

Not sure; but I know shell is not allowed at heliohost, and mediawiki does use some shell_exec() in their code.

Link to comment
Share on other sites

Looks like it's a shell command, but yum reports that the system has librsvg2 installed:

Installed Packages
librsvg2.i386                                                                   2.16.1-1.el5                                                        installed
librsvg2.x86_64                                                                 2.16.1-1.el5                                                        installed
librsvg2-devel.i386                                                             2.16.1-1.el5                                                        installed
librsvg2-devel.x86_64                                                           2.16.1-1.el5                                                        installed

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...