SVGs without viewBox

Bug #1544016 reported by Yousuf 'Jay' Philips on 2016-02-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alvin Penner

Bug Description

Linux Mint 17.3. Inkscape 0.91.0+devel+14640+61.

SVGs without a viewBox attribute open in Inkscape with a 1px X 1px canvas at 23600% zoom level, resulting in a user being confused whether anything is rendered in the SVG, as you have to zoom out to around 100% to see the content.


The behaviour in Inkscape 0.91 r (Feb 12 2015) of a 100px X 100px canvas was a more reason behaviour, but it would be even better if the size of the SVG was calculated and a suitable sized canvas be created based on the content.

su_v (suv-lp) wrote :

Attaching externally linked test cases directly to the bug report (based
on past experience external links tend to disappear, thus leaving
reports without essential context information / test cases).

Alvin Penner (apenner) wrote :

confirmed on Windows XP, Inkscape 0.91+devel r14645 (Feb 10 2016)

in trunk both of these files are given the viewbox values of (-1 -1 1 1), not sure why.

the appearance of both files in trunk, relative to the page outline, can be made to be the same as Inkscape 0.91 stable if the viewbox is manually changed to have the value (0 0 100 100).

Changed in inkscape:
status: New → Confirmed
Alvin Penner (apenner) wrote :

- fix committed to rev 14648
- for the two files attached above, the behavior in trunk should now be consistent with Inkscape 0.91 r13725 (Jan 30 2015)

Changed in inkscape:
status: Confirmed → Fix Committed
assignee: nobody → Alvin Penner (apenner)
su_v (suv-lp) on 2016-02-12
Changed in inkscape:
milestone: none → 0.92
su_v (suv-lp) on 2016-12-22
tags: added: viewbox
Bryce Harrington (bryce) on 2017-01-10
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers