Debian Codegraph @

/

debian librsvg 2.62.1+dfsg-1debian librsvg2-dev debian librsvg2-2 debian librsvg2-common debian librsvg2-doc debian librsvg2-bin debian librsvg2-tests debian gir1.2-rsvg-2.0 cargo version_check 0.9.5cargo string_cache_codegen 0.5.4cargo rustc_version 0.4.1cargo semver 1.0.27cargo phf_codegen 0.11.3cargo autocfg 1.5.0cargo rsvg_convert 2.62.1cargo rsvg-bench 2.62.1cargo librsvg 2.62.1cargo librsvg-rebind-sys 0.3.0cargo librsvg-rebind 0.3.0cargo shell-words 1.1.1
294 more… cargo librsvg-c 2.62.1cargo pixbufloader-svg 0.0.1cargo system-deps 7.0.7cargo version-compare 0.2.1cargo toml 0.9.11+spec-1.1.0cargo toml_writer 1.0.6+spec-1.1.0cargo toml_parser 1.0.6+spec-1.1.0cargo winnow 0.7.14cargo toml_datetime 0.7.5+spec-1.1.0cargo serde_spanned 1.0.4cargo pkg-config 0.3.32cargo cfg-expr 0.20.6cargo target-lexicon 0.13.3cargo gdk-pixbuf 0.22.0cargo gdk-pixbuf-sys 0.22.0cargo ci 0.0.0cargo gio-unix 0.22.0cargo gio-unix-sys 0.22.0cargo clap_complete 4.5.65cargo assert_cmd 2.1.2cargo predicates-tree 1.0.12cargo termtree 0.5.1cargo bstr 1.12.1cargo yeslogic-fontconfig-sys 6.0.0cargo dlib 0.5.2cargo libloading 0.8.9cargo xml5ever 0.35.0cargo url 2.5.8cargo idna 1.1.0cargo utf8_iter 1.0.4cargo idna_adapter 1.2.1cargo icu_normalizer 2.1.1cargo icu_properties 2.1.2cargo icu_provider 2.1.1cargo zerotrie 0.2.3cargo icu_properties_data 2.1.2cargo icu_locale_core 2.1.1cargo writeable 0.6.2cargo tinystr 0.8.2cargo litemap 0.8.1cargo icu_normalizer_data 2.1.1cargo icu_collections 2.1.1cargo potential_utf 0.1.4cargo zerovec 0.11.5cargo zerovec-derive 0.11.2cargo yoke 0.8.1cargo zerofrom 0.1.6cargo zerofrom-derive 0.1.6cargo yoke-derive 0.8.1cargo synstructure 0.13.2cargo displaydoc 0.2.5cargo form_urlencoded 1.2.2cargo percent-encoding 2.3.2cargo string_cache 0.9.0cargo phf_shared 0.13.1cargo selectors 0.31.0cargo servo_arc 0.4.3cargo stable_deref_trait 1.2.1cargo fxhash 0.2.1cargo byteorder 1.5.0cargo derive_more 2.1.1cargo derive_more-impl 2.1.1cargo rgb 0.8.52cargo rctree 0.6.0cargo proptest 1.9.0cargo unarray 0.1.4cargo rusty-fork 0.3.1cargo wait-timeout 0.2.1cargo tempfile 3.24.0cargo rustix 1.1.3cargo linux-raw-sys 0.11.0cargo errno 0.3.14cargo once_cell 1.21.3cargo fastrand 2.3.0cargo quick-error 1.2.3cargo fnv 1.0.7cargo rand_xorshift 0.4.0cargo bit-set 0.8.0cargo bit-vec 0.8.0cargo pretty_assertions 1.4.1cargo yansi 1.0.1cargo diff 0.1.13cargo predicates 3.1.3cargo predicates-core 1.0.9cargo normalize-line-endings 0.3.0cargo difflib 0.4.0cargo pangocairo 0.22.0cargo pangocairo-sys 0.22.0cargo pango 0.22.0cargo pango-sys 0.22.0cargo nalgebra 0.34.1cargo simba 0.9.1cargo wide 0.7.33cargo safe_arch 0.7.4cargo paste 1.0.15cargo num-rational 0.4.2cargo num-bigint 0.4.6cargo num-integer 0.1.46cargo num-complex 0.4.6cargo nalgebra-macros 0.3.0cargo matrixmultiply 0.3.10cargo rawpointer 0.2.1cargo glam 0.30.10cargo glam 0.29.3cargo glam 0.28.0cargo glam 0.27.0cargo glam 0.25.0cargo glam 0.24.2cargo glam 0.23.0cargo glam 0.22.0cargo glam 0.21.3cargo glam 0.20.5cargo glam 0.19.0cargo glam 0.18.0cargo glam 0.17.3cargo glam 0.16.0cargo glam 0.15.2cargo glam 0.14.0cargo approx 0.5.1cargo mutants 0.0.3cargo matches 0.1.10cargo markup5ever 0.35.0cargo web_atoms 0.1.3cargo string_cache 0.8.9cargo precomputed-hash 0.1.1cargo parking_lot 0.12.5cargo parking_lot_core 0.9.12cargo lock_api 0.4.14cargo scopeguard 1.2.0cargo tendril 0.4.3cargo utf-8 0.7.6cargo futf 0.1.5cargo new_debug_unreachable 1.0.6cargo mac 0.1.1cargo lopdf 0.38.0cargo ttf-parser 0.25.1cargo time 0.3.47cargo time-macros 0.2.27cargo time-core 0.1.8cargo num-conv 0.2.0cargo deranged 0.5.5cargo powerfmt 0.2.0cargo thiserror 2.0.18cargo thiserror-impl 2.0.18cargo stringprep 0.1.5cargo unicode-properties 0.1.4cargo unicode-normalization 0.1.25cargo tinyvec 1.10.0cargo tinyvec_macros 0.1.1cargo unicode-bidi 0.3.18cargo sha2 0.10.9cargo rangemap 1.7.1cargo rand 0.9.2cargo rand_chacha 0.9.0cargo rand_core 0.9.5cargo ppv-lite86 0.2.21cargo nom_locate 5.0.0cargo bytecount 0.6.9cargo nom 8.0.0cargo md-5 0.10.6cargo digest 0.10.7cargo block-buffer 0.10.4cargo jiff 0.2.18cargo log 0.4.29cargo jiff-static 0.2.18cargo indexmap 2.13.0cargo hashbrown 0.16.1cargo equivalent 1.0.2cargo getrandom 0.3.4cargo ecb 0.1.2cargo cbc 0.1.2cargo aes 0.8.4cargo cpufeatures 0.2.17cargo cipher 0.4.4cargo inout 0.1.4cargo block-padding 0.3.3cargo crypto-common 0.1.7cargo generic-array 0.14.7cargo typenum 1.19.0cargo locale_config 0.3.0cargo lazy_static 1.5.0cargo language-tags 0.3.2cargo itertools 0.14.0cargo image 0.25.10cargo zune-jpeg 0.5.13cargo zune-core 0.5.1cargo png 0.18.1cargo flate2 1.1.8cargo miniz_oxide 0.8.9cargo adler2 2.0.1cargo fdeflate 0.3.7cargo simd-adler32 0.3.8cargo crc32fast 1.5.0cargo moxcms 0.8.1cargo pxfm 0.1.27cargo image-webp 0.2.4cargo quick-error 2.0.1cargo gif 0.14.1cargo weezl 0.1.12cargo color_quant 1.1.0cargo byteorder-lite 0.1.0cargo bytemuck 1.24.0cargo gio 0.22.1cargo futures-io 0.3.31cargo float-cmp 0.10.0cargo encoding_rs 0.8.35cargo data-url 0.3.2cargo cssparser-color 0.3.0cargo cssparser 0.35.0cargo phf 0.11.3cargo phf_macros 0.11.3cargo phf_generator 0.11.3cargo rand 0.8.5cargo rand_core 0.6.4cargo phf_shared 0.11.3cargo siphasher 1.0.2cargo dtoa-short 0.3.5cargo dtoa 1.0.11cargo cssparser-macros 0.6.1cargo criterion 0.7.0cargo walkdir 2.5.0cargo same-file 1.0.6cargo tinytemplate 1.2.1cargo serde_json 1.0.149cargo zmij 1.0.17cargo itoa 1.0.17cargo regex 1.12.2cargo regex-automata 0.4.13cargo regex-syntax 0.8.8cargo aho-corasick 1.1.4cargo rayon 1.11.0cargo rayon-core 1.13.0cargo crossbeam-deque 0.8.6cargo crossbeam-epoch 0.9.18cargo crossbeam-utils 0.8.21cargo plotters 0.3.7cargo plotters-svg 0.3.7cargo plotters-backend 0.3.7cargo oorandom 11.1.5cargo criterion-plot 0.6.0cargo itertools 0.13.0cargo either 1.15.0cargo clap 4.5.56cargo clap_derive 4.5.55cargo clap_builder 4.5.56cargo strsim 0.11.1cargo clap_lex 0.7.7cargo anstream 0.6.21cargo is_terminal_polyfill 1.70.2cargo colorchoice 1.0.4cargo anstyle 1.0.13cargo anstyle-query 1.1.5cargo anstyle-parse 0.2.7cargo utf8parse 0.2.2cargo ciborium 0.2.2cargo serde 1.0.228cargo serde_derive 1.0.228cargo serde_core 1.0.228cargo ciborium-ll 0.2.2cargo half 2.7.1cargo zerocopy 0.8.36cargo zerocopy-derive 0.8.36cargo cfg-if 1.0.4cargo ciborium-io 0.2.2cargo anes 0.1.6cargo chrono 0.4.43cargo num-traits 0.2.19cargo iana-time-zone 0.1.65cargo cast 0.3.0cargo cairo-rs 0.22.0cargo glib 0.22.0cargo smallvec 1.15.1cargo memchr 2.8.0cargo glib-macros 0.22.0cargo heck 0.5.0cargo gio-sys 0.22.0cargo gobject-sys 0.22.0cargo futures-executor 0.3.31cargo futures-util 0.3.32cargo slab 0.4.11cargo pin-project-lite 0.2.16cargo futures-macro 0.3.32cargo syn 2.0.114cargo quote 1.0.44cargo proc-macro2 1.0.106cargo unicode-ident 1.0.22cargo futures-task 0.3.32cargo futures-channel 0.3.31cargo futures-core 0.3.32cargo cairo-sys-rs 0.22.0cargo glib-sys 0.22.0cargo libc 0.2.180cargo bitflags 2.10.0shell librsvg 2.62.1+dfsg-1
bashcssdebianhtmlinijsonmakemakefilemarkdownrustshelltomlxmlyaml 8250 files · 272119 symbols
View dependency graph

Depends on

Used by

Show 494 more
README (full)

Librsvg

This is librsvg - A small library to render Scalable Vector Graphics (SVG), associated with the GNOME Project. It renders SVG files to Cairo surfaces. Cairo is the 2D, antialiased drawing library that GNOME uses to draw things to the screen or to generate output for printing.

Do you want to render non-animated SVGs to a Cairo surface with a minimal API? Librsvg may be adequate for you.

Supported SVG/CSS features: Please see the chapter for supported features in the development guide.

PLEASE DO NOT SEND PULL REQUESTS TO GITHUB. We use gitlab.gnome.org instead. Please see Contributing to librsvg for details.

Table of contents:

[[TOC]]

Supported branches

Only these versions are supported:

  • 2.61.x
  • 2.62.x

Older versions are not supported. Please try a newer version before reporting bugs or missing features.

See the policy for supported versions for more details.

Stable release series

Since librsvg 2.55.x, all release streams are considered stable, not just ones with an even minor version number. A micro version starting at 90 means a beta release. For example:

  • 2.55.0, 2.55.1, etc. are stable releases in the 2.55 series.
  • 2.55.90, 2.55.91 are the first two beta releases before the stable 2.56.0

See the policy for supported versions for more details.

Using librsvg

Compiling: Librsvg uses the meson build system. Compile-time options are listed in the file meson_options.txt. Please refer to the Detailed compilation instructions in the development guide.

Documentation: You can read the documentation for librsvg's C API or the Rust API. Please file an issue if you don't find something there that you need.

Bug tracking: If you have found a bug, take a look at our bug tracker. Please see the "reporting bugs" page in the development guide to see how to provide a good bug report.

Asking questions: Feel free to ask questions about using librsvg in the "Platform" category of GNOME's Discourse. You can also ask via chat in the Matrix room for GNOME Rust.

Programming languages: Librsvg exports its API through GObject Introspection. This way, it is available in many programming languages other than C. Please see your language binding's documentation for information on how to load the Rsvg namespace.

Security: For a list of releases with security issues, instructions on reporting security-related bugs, and the security considerations for librsvg's dependencies, see the Security chapter in the development guide.

Contributing to librsvg's development

There is a code of conduct for contributors to librsvg; please see the GNOME Code of Conduct, which is duplicated in the file code-of-conduct.md.

Please see the Development Guide for librsvg on how to contribute to librsvg, how to report bugs, how set up your development environment, and for a description of librsvg's architecture.

Goals of librsvg

Librsvg aims to be a low-footprint library for rendering SVG1.1 and SVG2 images. It is used primarily in the GNOME project to render SVG icons and vector images that appear on the desktop. It is also used in Wikimedia to render the SVG images that appear in Wikipedia, so that even old web browsers can display them. Many projects which casually need to render static SVG images use librsvg.

We aim to be a "render this SVG for me, quickly, and with a minimal API" kind of library.

Feature additions will be considered on a case-by-case basis.

You can read about librsvg's supported SVG and CSS features in the development guide.

Non-goals of librsvg

We don't aim to:

  • Implement every single SVG feature that is in the spec.

  • Implement scripting or external access to the SVG's DOM.

  • Implement support for CSS-based animations (but if you can think of a nice API to do this, we would be glad to know!)

  • Replace the industrial-strength SVG rendering machinery in modern web browsers.

Of course, contributions are welcome. In particular, if you find nice ways of doing the above while still maintaining the existing API of librsvg, we would love to know about it!

Who uses librsvg?

Librsvg is part of the GNOME platform. Inside GNOME, librsvg takes multiple roles:

  • Loads SVGs from the generic gdk-pixbuf loader infrastructure, so any application which uses gdk-pixbuf can load SVGs as if they were raster images.

  • Loads SVG icons for the desktop.

  • Creates SVG thumbnails for the file manager.

  • Loads SVGs within GNOME's default image viewer, Eye of Gnome.

Outside of GNOME's core:

  • GNOME games (chess, five-or-more, etc. to draw game pieces)

  • GIMP

  • GCompris

  • Claws-mail

  • Darktable

  • Mate-panel

  • Evas/Enlightenment

  • Emacs

  • ImageMagick

  • Wikipedia, to render SVGs as raster images for old browsers. Special thanks to Wikimedia for providing excellent bug reports.

Presentations on librsvg

"Replacing C library code with Rust: What I learned with librsvg" was presented at GUADEC 2017. It gives a little history of librsvg, and how/why it is being ported to Rust from C.

"Patterns of refactoring C to Rust: the case of librsvg" was presented at GUADEC 2018. It describes ways in which librsvg's C code was refactored to allow porting it to Rust.

Maintainers

The maintainer of librsvg is Federico Mena Quintero. Feel free to contact me for any questions you may have about librsvg, both its usage and its development. You can contact me in the following ways:

  • Mail me at [email protected].

  • Matrix: I am @federico on the GNOME Hackers and Rust ❤️ GNOME channels on gnome.org's Matrix. I'm there most weekdays (Mon-Fri) starting at about UTC 14:00 (that's 08:00 my time; I am in the UTC-6 timezone). If this is not a convenient time for you, feel free to mail me and we can arrange a time.

  • I frequently blog about librsvg. You may be interested in the articles about porting librsvg from C to Rust, which happened between 2016 and 2020.

dir .cargo/
dir .gitlab/
dir afl-fuzz/
dir benchmarks/
dir ci/
dir debian/
dir devel-docs/
dir doc/
dir examples/
dir fuzz/
dir gdk-pixbuf-loader/
dir include/
dir librsvg-c/
dir librsvg-rebind/
dir meson/
dir pango-examples/
dir rsvg/
dir rsvg-bench/
dir rsvg_convert/
dir tools/
dir win32/
file .gitignore
file .gitlab-ci.yml
file .gitmodules
file .rumdl.toml
file AUTHORS
file COPYING.LIB
file Cargo.lock
file Cargo.toml
file INSTALL
file MAINTAINERS
file NEWS
file README.md
file Rsvg-2.0-custom.vala
file Rsvg-2.0.metadata
file SECURITY.md
file code-of-conduct.md
file deny.toml
file librsvg-zip.in
file librsvg.doap
file meson.build
file meson_options.txt
file rsvg-convert.rst