SVGs without viewBox

Bug #1544016 reported by Yousuf 'Jay' Philips
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
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.

Examples:
https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/circles1.svg
https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/DroidSans.svg

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.

Tags: viewbox
Revision history for this message
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).

Revision history for this message
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
Revision history for this message
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)
Changed in inkscape:
milestone: none → 0.92
su_v (suv-lp)
tags: added: viewbox
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.