{"id":30294475,"url":"https://github.com/juliagraphics/rsvg.jl","last_synced_at":"2026-02-10T02:30:50.674Z","repository":{"id":310086334,"uuid":"1038648708","full_name":"JuliaGraphics/Rsvg.jl","owner":"JuliaGraphics","description":"interface to rsvg lib","archived":false,"fork":false,"pushed_at":"2025-08-15T15:43:10.000Z","size":1503,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-15T17:41:44.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JuliaGraphics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-15T15:29:05.000Z","updated_at":"2025-08-15T15:43:13.000Z","dependencies_parsed_at":"2025-08-15T17:41:47.171Z","dependency_job_id":"5df3cea4-a865-47fb-8fba-57db653eff79","html_url":"https://github.com/JuliaGraphics/Rsvg.jl","commit_stats":null,"previous_names":["juliagraphics/rsvg.jl"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/JuliaGraphics/Rsvg.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FRsvg.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FRsvg.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FRsvg.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FRsvg.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaGraphics","download_url":"https://codeload.github.com/JuliaGraphics/Rsvg.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaGraphics%2FRsvg.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796215,"owners_count":24647319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-17T01:35:10.605Z","updated_at":"2026-02-10T02:30:50.635Z","avatar_url":"https://github.com/JuliaGraphics.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rsvg.jl\n=======\n\n[![CI](https://github.com/JuliaGraphics/Rsvg.jl/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/JuliaGraphics/Rsvg.jl/actions/workflows/ci.yml?query=branch%3Amaster)\n\nAdaptation of the [librsvg](https://wiki.gnome.org/LibRsvg?action=show).\n\nThis is a subset of the full API, but the main points\n\n* Open an svg file and render to a Cairo Context (surface)\n* Read svg data from a string and render to a Cairo Context\n\nare available.\n\n(To be correct at this point: A full binding/adaptation should be done via GObject Introspection - which might be available in the future. This here is just ccalls to solve sv to cairo import problems...)\n\nNote on API: nothing is exported, you need to prefix Rsvg.callsomething\n\nUsage\n=====\n\n```julia\nusing Rsvg\nusing Cairo\n\nfilename_in = \"a4.svg\"\nfilename_out = \"a4.png\"\n\nr = Rsvg.handle_new_from_file(filename_in);\nd = Rsvg.handle_get_dimensions(r);\ncs = Cairo.CairoImageSurface(d.width,d.height,Cairo.FORMAT_ARGB32);\nc = Cairo.CairoContext(cs);\nRsvg.handle_render_cairo(c,r);\nCairo.write_to_png(cs,filename_out);\n```\n\nAPI\n===\n```julia\nhandle_get_dimensions(handle::RsvgHandle, dimension_data::RsvgDimensionData)\ndimension_data = handle_get_dimensions(handle::RsvgHandle)\nset_default_dpi(dpi::Float64)\nhandle_set_dpi(handle::RsvgHandle, dpi::Float64)\nhandle_render_cairo(cr::CairoContext, handle::RsvgHandle)\nhandle_new_from_file(filename::AbstractString,error::GError)\nhandle_new_from_file(filename::AbstractString)\nhandle_new_from_data(data::AbstractString,error::GError)\nhandle_new_from_data(data::AbstractString)\n```\n\nSome Notes on Error Handling\n============================\nThere is none. You'll get all kinds of errors (missing something) via the GLib internals. \n\nInteraction with other GLib based libraries\n===========================================\nlibrsvg is usually used in a Gnome/GLib context. Some of the features therefore depend on availability of a GLib as shared resource, especially memory management. This package e.g. depends for destroying RsvgHandles on GLib infrastructure and strange things can happen if you manage to load 2 different GLib instances. As long as you use Rsvg along Gtk.jl and Cairo.jl you should be fine.\n\nNote\n====\n\nThis package was created by [Andreas Lobinger](https://github.com/lobingera/Rsvg.jl).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliagraphics%2Frsvg.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliagraphics%2Frsvg.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliagraphics%2Frsvg.jl/lists"}