Questions tagged [rsvg]

A small library used for the reading and rasterizing of SVG images onto a Cairo.Context surface.

44 questions
17
votes
3 answers

Putting .SVG images into tkinter Frame

I have been trying to put the image from https://betacssjs.chesscomfiles.com/bundles/web/favicons/safari-pinned-tab.f387b3f2.svg into a Tkinter frame. I found from the post here that it is possible with the help from rsvg and cairo. I was using…
Andereoo
  • 834
  • 1
  • 8
  • 24
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:…
10
votes
3 answers

ImageMagick convert SVG to PNG not working with RSVG enabled

I'm using ImageMagick's convert utility to convert SVG file to PNG image. At first, I used vanilla installation of IM on OSX (brew install imagemagick) to convert the SVG using: $ convert file.svg file.png This worked except that some of the image…
sa125
  • 28,121
  • 38
  • 111
  • 153
7
votes
1 answer

rsvg with Python 3.2 on Ubuntu

I am trying to use rsvg in Python 3.2 but I keep getting an import error. I have installed all of the librsvg packages along with cairo. I cannot find anything online about what else to install to get it to work. I did hear that the rsvg module…
drewlaqua
  • 101
  • 2
  • 6
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
1 answer

Python SVG converter creates empty file

I have some code below that is supposed to convert a SVG image to a PNG. It runs without errors but creates a PNG file that is blank instead of one with the same image as the original SVG. I did find that it is not an error with cairo but more one…
Andereoo
  • 834
  • 1
  • 8
  • 24
6
votes
2 answers

SVG to PNG with multiple image layers using PHP

I convert svg to png image with this code This works with a single svg image. Actually i have an svg image which contains multiple layers of images like: 1st layer -:…
HEMANT SUMAN
  • 478
  • 2
  • 13
6
votes
5 answers

How to convert large SVG file to tiled PNGs?

I have a large SVG file (approx. 60 MB, 10000x10000 pixels but with the potential to get much larger), and I'm wanting to create, say, many tiled 256x256 PNG images from it (in that example there would be 1600 images; round(10000/256)^2). Does…
Robert
  • 5,735
  • 3
  • 40
  • 53
6
votes
1 answer

Ruby, RSVG and PNG streams

I'm trying to do an image conversion in a rails app from SVG to PNG. ImageMagick didn't work out for me, due to Heroku not able / wanting to upgrade IM at this time. I'm testing out some ideas of using RSVG2 / Cairo in dev but running into a…
Dave Sanders
  • 3,135
  • 4
  • 33
  • 43
5
votes
1 answer

Can you display an image inside of a python program (without using pygame)?

I want to do something like: import image image.display_image('http://upload.wikimedia.org/wikipedia/commons/8/84/Example.svg') And it would come out as an image. P.S. I want PNG or JPEG, not GIFs.
pythonprogrammer
  • 693
  • 2
  • 7
  • 7
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
1 answer

Inserting hyperlinks into node labels in DiagrammeR

I would like to be able to create flowcharts with DiagrammeR in R so that I can export SVG through the devtools::install_github('rich-iannone/DiagrammeRsvg') package. My flowcharts must include hyperlinks in some of the nodes, unfortunately I can't…
4
votes
0 answers

Convert SVG to PNG with embeded base64 fonts

I have a nodeJS backend with a service to convert SVG files to PNG. I used to use phantomJS to do that, and never had any problem, but performance was really bad. I'm looking for a performatic way of doing this. Right now I'm using RSVG, and it…
3
votes
0 answers

Rsvg Convert not working with path text

I'm trying to parse an svg file to png format. This is my svg file: https://cdn-imgs-p.stackprint.net/spree/images/62398/original/preview_01.svg When using rsvg-convert --unlimited preview_01.svg > preview.png, the paths fonts are not being…
Lucas Juarez
  • 137
  • 2
  • 11
3
votes
3 answers

SVG interaction in python with cairo, opengl and rsvg

I render a huge SVG file with a lot of elements with Cairo, OpenGL and rsvg. I draw svg on cairo surface via rsvg and create an OpenGL texture to draw it. Everything is fine. And now I have to interact with elements from SVG. For example, I want to…
jarik
  • 279
  • 3
  • 5
1
2 3