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
1
vote
1 answer

Getting the dimensions of an svg path without using bounding box

Would there be a way to get the dimensions of an svg path and display it in a div? The bounding box is not an option as it is buggy in Webkit when it comes to bezier curves. I am doing a modification of svg-edit btw:…
nicholaswmin
  • 21,686
  • 15
  • 91
  • 167
0
votes
1 answer

How to get individual character positions of SVG text on the server

I'm writing server-side software that makes a movie by generating individual frames in SVG and rendering to PNG with rsvg-convert. The movie requires an effect to be applied to text in the SVG on a character-by-character basis. With the SVG text…
jdesbonnet
  • 251
  • 3
  • 7
0
votes
3 answers

Compilation error while using librsvg

I am using librsvg in my C files to rasterize SVG, but as soon as I include rsvg.h, I start to get the following error: /usr/include/librsvg-2.0/librsvg/rsvg.h:29:25: fatal error: glib-object.h: No such file or directory Does anyone know why it…
Aarkan
  • 3,811
  • 6
  • 40
  • 54
0
votes
0 answers

Install Vips-8.9.2 on UCRT64 windows11

I am trying to install vips-8.9.2 on UCRT64 for windows 11. And after "./configure" I got: configure: creating ./config.status config.status: creating vips.pc config.status: creating vips-cpp.pc config.status: creating Makefile config.status:…
0
votes
0 answers

Graphviz and librsvg on Windows

On Windows 10, I use Graphviz to render a dot file. This dot file has nodes that contain SVG images. C:\something\dot.exe -Tpdf -o "out" "in.dot" dotfile: digraph G { N1 [label = <
mafu
  • 31,798
  • 42
  • 154
  • 247
0
votes
1 answer

C API functions in libcairo or librsvg, to convert lengths to other units?

I'm trying to develop a C program based on https://github.com/songulabuzar/librsvg-minimal-example, which reads and renders and SVG file, using both librsvg and cairo libraries. I have noticed, that both libraries contain enums that define length…
sdaau
  • 36,975
  • 46
  • 198
  • 278
0
votes
0 answers

How to solve "error: object name conflicts in archive" when trying to install a newer version of librsvg in aarch64

I am currently running Ubuntu Server 20.04.3 with GUI installed, on a virtual machine running on a Mac with the latest M1 Pro chip. I would like to install librsvg package with version 2.52.5, and the current version of librsvg is shown below: $ apt…
Ethan L.
  • 395
  • 2
  • 8
0
votes
0 answers

ctypes Segmentation Fault when binding rsvg

I have a simple python ctypes wrapper around rsvg to be used with cairo. It seems to work on ubuntu 16 but when I try it on ubuntu 18 I get a Segmentation error. I have looked at the cairo docs for an example of how this can be done, so nothing…
morgen
  • 11
  • 1
0
votes
0 answers

How to convert SVG to BMP?

This question may have been answered in multiple websites. However, I am having issues getting it to work correctly. My goal is to convert an SVG file to BMP using command line. Below is the content of a simple SVG file. Note the resolution must be…
Zythyr
  • 1,142
  • 4
  • 20
  • 33
0
votes
1 answer

ImageMagick: non-conforming drawing primitive definition `px'

I'm a beginner at using ImageMagick. I have a simple svg image from the file system, and I want to convert it to png file, so I ran: $ convert -resize 100% ~/image.svg ~/image.png And the error is: convert-im6.q16: non-conforming drawing primitive…
Jasper Martin
  • 180
  • 3
  • 11
0
votes
1 answer

How to convert svg to png successfully with rsvg-convert?

I am trying to convert an svg file to a png using rsvg-convert from the librsvg library. The conversion completes but the resultant image is blank. I'm using the following svg as my input:…
0
votes
1 answer

librsvg css not matching descendant selector

I am trying to use librsvg to render some charts that are produced in SVG format (part of a much larger project). However the rendered result looks quite different to the appearance when the SVG file is opened in a web browser. By pulling apart the…
harmic
  • 28,606
  • 5
  • 67
  • 91
0
votes
1 answer

Librsvg Segmentation fault - Many images with around 10MB

I am trying to render an SVG with 4000x4000 resolution. The command I am using is: rsvg --keep-image-data -w 4000 -h 4000 big.svg try.png An svg sample is:
Gabriel Stein
  • 428
  • 1
  • 4
  • 22
0
votes
0 answers

librsvg - How to build for android

Anybody have instructions on how to build libsrvg for android (including setting which c++ standard library should be linked to) Thanks in Advance.
Declan
  • 669
  • 1
  • 7
  • 12
0
votes
1 answer

Why doesn't librsvg doesn't export the black paths in a PNG?

Here is an SVG image I want to convert to PNG with librsvg in my program. This is a PNG version of the SVG exported from Inkscape: This is a bitmap of the same SVG exported with librsvg: Only the white portions of the image are exported. The black…
EMBLEM
  • 2,207
  • 4
  • 24
  • 32