After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749782 - render at specified size, other than from file on disk
render at specified size, other than from file on disk
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2015-05-24 00:16 UTC by delt
Modified: 2017-12-13 18:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description delt 2015-05-24 00:16:23 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)
Comment 1 Matthias Clasen 2015-05-25 00:06:45 UTC
use the gdk-pixbuf api to load: gdk_pixbuf_new_from_file_at_scale
Comment 2 delt 2015-05-25 03:40:50 UTC
I need to render inline SVG data at a specific size, not a file on disk.
Comment 3 delt 2015-05-28 00:07:11 UTC
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?
Comment 4 GNOME Infrastructure Team 2017-12-13 18:08:52 UTC
-- 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.