GNOME Bugzilla – Bug 762115
Regression: behaviour of -w and -h changed, now crops instead of scales the image
Last modified: 2017-12-13 18:16:43 UTC
Version: 41.0.2 Commit fecfcce44a959daff80a4e0f9ced83d7cdcb5903 caused a regression. It broke the behaviour of -w and -h. Before the commit, those parameters would scale the image, now it crops them. See also https://bugzilla.gnome.org/show_bug.cgi?id=520654#c2
The --zoom parameter seems to also be broken since 2.40.11. I reverted to 2.40.10 and it behaves correctly, that is rsvg-convert -z 3 file.svg where file is <svg width="100" height="100" ...>, will yield a 300x300px image.
This being broken is really unfortunate and the reason I can't upgrade. rsvg-convert used to the the simple solution for rendering svgs with a specific width/height without knowledge of the svgs internal dimensions. Now this is no longer possible.
-- 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/135.