A small library used for the reading and rasterizing of SVG images onto a Cairo.Context surface.
Questions tagged [rsvg]
44 questions
1
vote
0 answers
svg renders differently in browser and imagemagick (using rsvg convert)
I am using imagemagick with rsvg-convert to convert svgs into jpegs. Everything works fine except when using gamma function to color correct images. It produces very different image than the one in browser.
Here is a preview of what the svg looks…

Wdy Dev
- 219
- 2
- 11
1
vote
1 answer
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 viewBox attributes in

loll
- 241
- 3
- 6
- 14
1
vote
1 answer
Issue rendering SVG in Python using pyrsvg and Cairo
I am having some trouble using the following code to render some SVG into PNG data. The StringIO writer is used since the image is ultimately intended for use as the body of an HTTP response.
The result is a PNG of the correct dimensions, but it is…

dlp
- 486
- 1
- 4
- 14
1
vote
3 answers
wrong color channels, pygame cairo rsvg drawing
I have cairo+rsvg rendering a .svg file in pygame. But the color channels are wrong.
testing with lion.svg
But image is:
I believe I have my RGBA channel order swapped, (He's pink, not yellow). but am not clear on how it works. Here's my code,…

ninMonkey
- 7,211
- 8
- 37
- 66
0
votes
0 answers
How to draw svg on cairo surface CAIRO_FORMAT_A8, using Rsvg lib
i have an demo code to draw svg file or stream to cairo. Now it work only with format CAIRO_FORMAT_ARGB32, but not work with CAIRO_FORMAT_A8. Can any one help me to solve this issue or show me another way, please see my code below:
cairo_surface_t …

Lý Hoài
- 129
- 6
0
votes
1 answer
how to see svg graphics pop up in R GUI
library(rsvg)
str <- charToRaw('
0
votes
0 answers
AttributeError: module 'rsvg' has no attribute 'Handle'
I have been trying to put a SVG image in tkinter. I have installed cairo and rsvg but when running my script, get the error: AttributeError: module 'rsvg' has no attribute 'Handle'
This is my script:
#some code to give rsvg.render_cairo(ctx)…

Andereoo
- 834
- 1
- 8
- 24
0
votes
0 answers
Update RSVG with SSH
Is there any way to update the RSVG renderer from the Putty tool via SSH. It is now at RSVG 2.26.0.
I need this to convert an svg to png. The current version of RSVG does not produce a proper result.

user3774771
- 53
- 1
- 10
0
votes
0 answers
convert svg with to png
I am struggling to convert a svg to png. The file includes a and is basically setup the same as this one here. I have installed imagemagick such that rsvg is/should be used for rendering of svg grafics.
$ convert -list delegate | grep -i…

philipp
- 15,947
- 15
- 61
- 106
0
votes
0 answers
Why is SVG preserveAspectRatio not working? rsvg-convert
I am using SVG graphics to create images for an app I'm working on. As an example I will use one of my simplest images.

William Rosenbloom
- 2,506
- 1
- 14
- 37
0
votes
1 answer
Is it possible to cut away transparent areas of Gtk-pixbuf?
I am currently using rsvg in Python to separate Svggroups.
I got it working so that rsvg loads a single group ... alas all the transparent space around that still remains.
Is there a gtk functionallity to cut away all this space?
Thanks for all the…

wuschelhase
- 1,084
- 1
- 9
- 17
0
votes
1 answer
Get the coords and height/width of a svg group into python
Hi I want to load the groups of a svg-file into several gtk pixbuffs/subpixbufs
therefore I need the coordinates and width and height of them
I'm currently just using rsvg and gtk
is it possible to get those information with that modules ? Or do I…

wuschelhase
- 1,084
- 1
- 9
- 17
0
votes
1 answer
Convert SVG to PDF using Python, rsvg & Cairo
I have managed to read SVG using rsvg and output it to PNG via Cairo, in Python.
Despite there being MANY similar questions, I've not seen any documentation on how to convert SVG into PDF through rsvg & cairo. I am aware of the command-line…

Petri
- 4,796
- 2
- 22
- 31
0
votes
2 answers
Invalid svg to png conversion via rsvg in mediawiki
While uploading this file to my wiki instance, application uses librsvg to convert it into png thumbnails. But the result is like this Link
This dragon seems to be generated in Inkscape, so i tried to use inkscape as a converter. It worked for this…

xdrew
- 123
- 1
- 8