GNOME Bugzilla – Bug 749782
render at specified size, other than from file on disk
Last modified: 2017-12-13 18:08:52 UTC
I'm developing an app that uses librsvg. Currently, i have to "borrow" a small/moderate "private" portion of the code, and implement myself the (imho missing) functions: GdkPixbuf *rsvg_pixbuf_from_data_at_size (const guchar *buff, size_t len, int width, int height, const char *base_Uri, GError **error); GdkPixbuf *rsvg_pixbuf_from_data_at_zoom (const guchar *buff, size_t len, double x_zoom, double y_zoom, const char *base_Uri, GError **error); These a very simple functions that are mostly just using already existing (but marked "private") code. I would very much like to see these functions in a future release of librsvg, as well as a very much needed: rsvg_handle_render_cairo_at_size () function. This way, i will be able to rely on librsvg without linking a static, modified copy into my application. Thanks very much, - delt. (Montréal, Canada)
use the gdk-pixbuf api to load: gdk_pixbuf_new_from_file_at_scale
I need to render inline SVG data at a specific size, not a file on disk.
I need to render inline SVG data at a specific size, not a file on disk. Is there a way to do this, preferably without having to directly manipulate the SVG string data?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/111.