Questions tagged [librsvg]

librsvg is a library to render SVG files using cairo.

librsvg is a library to render SVG files using cairo. Additionally, using various tools you can create and manipulate SVG objects.

67 questions
16
votes
3 answers

Use librsvg / rsvg to convert SVG images with ImageMagick

I know this question has several answered version here (like this: ImageMagick convert SVG to PNG not working with RSVG enabled ), but actually I can't find a real solution to my exact problem. My problem is: I have a specific SVG file (and I will…
Zoliqa
  • 174
  • 1
  • 1
  • 10
14
votes
3 answers

A library to convert svg to images?

I am looking for a library written either in C or C++ which can convert the svg to image formats. I came across inkscape which converts svg to images. but to use this I must run inkscape as a process and this not the solution I am after. I need the…
Ashwin
  • 1,942
  • 4
  • 30
  • 59
13
votes
0 answers

Text font issues with rsvg-convert

We were using rsvg-convert for SVG to PDF conversion and it was working like a charm, till we encountered text. Here's an example- Command: rsvg-convert -w 842 -f pdf -o testing.pdf testing.svg Here's the SVG:…
11
votes
3 answers

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…
btw0
  • 3,516
  • 5
  • 34
  • 36
10
votes
3 answers

Convert SVG to PNG and maintain CSS integrity

I am currently using canvg() and Canvas2Image to copy my SVG to a canvas and then convert the canvas to PNG. I would like to maintain the image format and not use PDF. How can I maintain the CSS integrity? Chart is made using NVD3.js. downloadPhoto:…
collenjones
  • 510
  • 5
  • 19
8
votes
1 answer

ImageMagick (RSVG) won't import images in SVG

I'me trying to use ImageMagick to convert SVG files to PNG. The SVG file is as follows:
KTastrophy
  • 1,739
  • 15
  • 23
8
votes
3 answers

Can't install Imagemagick on Mountain Lion

Yesterday I updated to Mountain Lion and I wanted to start my rails app and had some problems with Rmagick gem. After reading on the net I did the following : Installed Xcode 4.4 Installed developper tools Installed Xquartz Uninstalled imagemagick…
SteenhouwerD
  • 1,819
  • 1
  • 16
  • 22
7
votes
2 answers

SVG Converting using ImageMagick doesn't apply a translation correctly

I am on a Mac using Mac OS X 10.5, and I am trying to use ImageMagick to convert an SVG file to a PNG. The problem is when I use it the rotated image doesn't show up in the correct position. If I use Batik to convert the file, it works…
kareed
  • 91
  • 4
6
votes
4 answers

SVG to PNG with custom fonts in Python

I'm using Cairo/RSVG based solution for rasterizing SVG to PNG. It's already beeb described on StackOverflow in Convert SVG to PNG in Python. However, this solution doesn't seem to work with custom fonts. I've found this page describing embedding…
vartec
  • 131,205
  • 36
  • 218
  • 244
6
votes
2 answers

Where to find/download lib rsvg for python on OSX

I'm looking to use the python library rsvg for converting an SVG graphic to other formats (mainly PDF) and cannot seem to find the python-librsvg source to download and install on Mac OSX anywhere. Any help?
simoes
  • 4,897
  • 4
  • 23
  • 28
6
votes
4 answers

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:
colinmarc
  • 2,421
  • 1
  • 22
  • 34
4
votes
1 answer

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?
Nick Sergeant
  • 35,843
  • 12
  • 36
  • 44
4
votes
2 answers

Error with Python ctypes and librsvg

I'm trying to wrap basic function of librsvg with ctypes for Python, but I'm getting a segfault. C: // pycairo excerpt typedef struct { PyObject_HEAD cairo_t *ctx; PyObject *base; /* base object used to create context, or NULL */ }…
xyz-123
  • 2,227
  • 4
  • 21
  • 27
3
votes
1 answer

scaling vector images through librsvg

Is it possible to scale the svg before getting its pixel buffer through librsvg? I can see API like rsvg_pixbuf_from_file_at_zoom but it is marked as deprecated. Is there some other way to do it? I wan to avoid using cairo for this, if possible.
Aarkan
  • 3,811
  • 6
  • 40
  • 54
3
votes
0 answers

librsvg - cmake module debug mode appends a suffix

I'm trying to get a native Windows build working in which we depend on librsvg-2. It's correctly installed through vcpkg. We usually build with cmake and have made a custom module to find this library. This works great in the unix world, but not…
Baklap4
  • 3,914
  • 2
  • 29
  • 56
1
2 3 4 5