Questions tagged [rsvg]

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

44 questions
3
votes
3 answers

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

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?
btelles
  • 5,390
  • 7
  • 46
  • 78
3
votes
1 answer

Python+RSVG+Cario: Scale SVG to printing size

I'm trying to print a dynamically created SVG in Python using Cairo and RSVG with the following code (it's a Gtk application). It is a special type of paper, 147x205mm exactly. If I open the SVG in EOG I can print it without issues, but using the…
neo post modern
  • 2,262
  • 18
  • 30
2
votes
1 answer

Text along the curves absence after convertion from svg to png using python+cairo+rsvg

I'm trying to convert SVG to PNG using Python, Cairo and librsvg. Everything is okay, except of the text typed along the curve. This text is blank on the result PNG image, although the normal horizontal text is OK. Here is the source of my…
art.zhitnik
  • 604
  • 5
  • 19
2
votes
1 answer

Installing rsvg library in R 4.0.2 (conda-forge)

I'm facing difficulties downloading the r package rsvg. I created first an environment with conda for the latest R version 4.0.2 following these instructions. I was able to download many other R packages & bioconductor packages without problem,…
H.Hasani
  • 79
  • 1
  • 8
2
votes
1 answer

How to install cairo and rsvg for python

I understand that Stackoverflow is for help with code, but I figured I'd ask anyways. I found from the post here that it is possible to put a .svg file into a tkinter window, but after days of searching, I still can't find any place where I could…
Andereoo
  • 834
  • 1
  • 8
  • 24
2
votes
1 answer

How do I set up an icon inside Relm's view! macro?

I am using Rust stable 1.30 and Relm. I figured out how to set up the default window size, but don't know how to set up the icon, at least inside the view! macro. This is my main.rs extern crate gtk; extern crate chessground; #[macro_use] extern…
loloof64
  • 5,252
  • 12
  • 41
  • 78
2
votes
0 answers

Using RSVG to convert svg with non-local image

I've got an SVG image as follows that I'm trying to convert to a PNG:
Gordon Williams
  • 1,856
  • 1
  • 17
  • 31
2
votes
1 answer

pygtk / rsvg - getting size of drawing?

Is it possible for RSVG and Cairo to find the extents of a drawing within an SVG image? i.e. not the page width/height, but the space actually used by drawing elements. This doesn't work, it just returns page size: img =…
OJW
  • 4,514
  • 6
  • 40
  • 48
1
vote
0 answers

Unable to install rsvg package at Ubuntu 22.04 with librsvg2-dev already installed

I am getting the following error at an Ubuntu 22.04, when trying to install rsvg at Rstudio. --------------------------- [ANTICONF] -------------------------------- Configuration failed to find the librsvg-2.0 library. Try installing: deb:…
hamagust
  • 728
  • 2
  • 10
  • 28
1
vote
2 answers

Problem in the installation of R package rsvg

I'm trying to install r package rsvg without any success. Tried the following two methods: 1. install.packages("rsvg") install.packages("rsvg") Installing package into ‘C:/Users/hp/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) There…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
1
vote
1 answer

How to crop a SVG image to the bounding box of the vector grafics elements

I have a SVG image here which is generated with 'empty space', i.e. only in the top-left corner is image content, whereas the rest is blank. I think it should be trivially possible to have an automated way to crop the image size to the bounding box…
wirrbel
  • 3,173
  • 3
  • 26
  • 49
1
vote
1 answer

Differences while rendering SVG with librsvg and Python

Depending upon rendering an SVG either as a whole document or as a single element shows differences in rendering. I created a simple SVG graphic using Inkscape and want to render it using Python. I decided librsvg was the way to go. This is my SVG,…
MasinAD
  • 31
  • 6
1
vote
0 answers

Getting error from ProcessBuilder while running docker container

I have a simple Talend job that reads the version of librsvg2-bin library, writes it to a file and sends it to Azure Blob. Component tSystem needs to execute this command: rsvg-convert -v. When I run the container I got this…
alterego
  • 322
  • 1
  • 3
  • 11
1
vote
0 answers

How to use python-rsvg in ubuntu 18?

In ubuntu 18 python-rsvg is not available as a package. I need to render an svg to a pyCairo context, basically: handle = rsvg.Handle(path_to_svg_file) handle.render_cairo(context) Is there an alternative python binding for rsvg, or a different way…
morgen
  • 11
  • 1
1
vote
1 answer

Problem when using RSVG and Cairo in Python

I have been trying to put a SVG image in a tkinter frame with python 3.6 on Windows. I recently downloaded a the pycairo‑1.18.0‑cp36‑cp36m‑win32.whl file from https://www.lfd.uci.edu/~gohlke/pythonlibs/ and in the command prompt typed pip install…
Andereoo
  • 834
  • 1
  • 8
  • 24