librsvg

How to install python-rsvg without python-gnome2-desktop on Ubuntu 8.10?

I need rsvg support in Python 2.5.2. It appears that I have to install all 199 deps along with the package python-gnome2-desktop, which doesn't sound fun at all. Alternatives? ...

How to resize svg image file using librsvg Python binding

When rasterizing svg file, I would like to be able to set width and height for the resulting png file. With the following code, only the canvas is set to the desired width and height, the actual image content with the original svg file dimension is rendered in the top left corner on the (500, 600) canvas. import cairo import rsvg WIDT...

How do you convert an SVG image "paths" into separate PNG images?

Hi there, I've got an SVG image with 67 separate paths. Are there any libraries/tutorials out there that will create a separate raster image such as a PNG for each of those paths, and perhaps name them according to the path id? ...

librsvg library crashing in release mode

Hello, recently I've been trying to write an application that draws SVG pictures. I'm using librsvg library in order to do so. I found a static library file "librsvg-2.dll.a" somewhere and it seemed to do the trick. The problem is that it crashes in release mode on rsvg_init() function call. I have no idea how to cope with that. Perha...

rsvg doesn't render linked images

I use the python rsvg bindings to render an svg image into cairo and save to file, which mostly works. But if the svg file contains a linked image, like so: <image href="static/usrimgs/tmpDtIKpx.png" x="10" y="10" width="600px" height="400px"></image> the image doesn't show up in the final file (the rest of the svg renders just fine)....

centos: linking lib that doesn't have a .pc file for pkg-config

I'm trying to compile svg2pdf on centos. I think I've managed to get the required dependencies installed using yum: sudo yum install librsvg2 sudo yum install cairo The Makefile contains: MYCFLAGS=`pkg-config --cflags librsvg-2.0 cairo-pdf` -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations - Wneste...

Linking Macports libraries to XCode application

I'm trying to distribute my app's dependencies with the app. I've got the macports packages librsvg, boost, and cairo installed 64-bit-only on my Snow Leopard system. When I create an .app bundle of my program, it does not work on machines without macports and the relevant libraries installed because they are not included with the app, ...

scaling svg figure

I tried to resize svg file to be opened in illustrator with smaller width and height(pixels or cm), I did this by changing width, height and veiwbox attributes in tag, but it doesn't work at all.By search I have found that transform attribute via matrix value affects the real resizing of the figure,any ideas about ready made functions o...

Is the render_sub() function of Rsvg also capable of separating groups ?

I am trying to separate Groups from an Svg-File. Separating single elements such as rectangles is possible via Rsvgs. render_sub(cairo_context,"#rect1234") works well for me. Is there a way to also separate whole groups of elements you created in inkscape before? Like render_sub(cairo_context,"#g4321") [which doesn't work]. ...

debug with svgalib program under linux

I have device which is running linux with svga library for user interface. I tried to debug it by using GDB, but I got black screen when I initiated graphic by launching svga library. Any body knows how I can make it work? Thanks. ...