SVG fixed

It was reported in the Wary 5.0 Forum feedback that mtPaint is unable to open the demo SVG file /usr/share/examples/vector-images/compobj-1.svg.

Also, when you right-click on the "eye" icon in ROX, the thumbnail of the .svg image is supposed to render as a raster thumbnail. It doesn't.

I found the cause of the problem: file /etc/gtk-2.0/gdk-pixbuf.loaders is missing the entry for /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so.

You can fix it by running:

# gdk-pixbuf-query-loaders

to regenerate file gdk-pixbuf.loaders, however, I decided to compile the latest librsvg, version 2.32.1, and I have done this and created PETs. This has the correct file gdk-pixbuf.loaders.
This fix will be in the next Wary.

A note about opening an SVG file in mtPaint. It only gets opened as a raster image. If you want to edit it as a vector diagram, you need to use Inkscapelite or Inkscape. I think also Amaya has some SVG editing capability.


Posted on 15 Jan 2011, 18:09


Comments:

Posted on 15 Jan 2011, 23:37 by jemimah
rsvg-view
It's also nice to include rsvg-view (part of the librsvg package) as a rox-right-click for svgs or maybe as the default svg opener. Rsvg-view can resize svgs and export them to png which is often the only thing one needs to do with an svg file.

Inscapelite crashes when trying to open many svg (I think it's the svg+xml ones that cause the problem) files so it's not really a good default svg opener.