Use viewBox to explicitly define a coordinate system

Bug #171203 reported by Bug Importer
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
Matthew Petroff

Bug Description

I've noticed when looking at the source after saving as
plain SVG that, although the width and height of the
document are defined in real world units, the other
coordinates within the document are specifid in user
units. The problem is, how do you know for sure what the
user units will be? There is an assumption made by
inkscape about this, but it might be wrong for other

I suggest that width and height continue to be set as
they currently are, but a viewBox should be included to
set up a coordinate system. This way, nothing is left
to guesswork.

Tags: saving viewbox
Revision history for this message
Bug Importer (bug-importer) wrote :

This should be priority 9. The format of the file is really
the most crucial part of the project to get right.
Everything else is secondary.

Without the use of viewBox, it's a wonder why the files work
in other programs at all. How does the program know how the
user units relate to the dimentions of the document? It
baffles me. viewBox makes this explicit. Explicit is good.

Revision history for this message
Frederik Elwert (frederik-elwert) wrote :

Originator: NO

A viewBox is important for cliparts. These are not meant to have fixed
dimensions, but should scale as needed. uses the svg files as thumbnails, but whithout the viewBox
attribute, clipart is clipped to thumbnail size, not resized.

Is there any concern about just adding a viewBox with the value "0 0
$width $height"? This should be a step forward without to many

vonHalenbach (lustik)
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Matthew Petroff (matthewpetroff) wrote :

Fixed in r12557.

Changed in inkscape:
assignee: nobody → Matthew Petroff (matthewpetroff)
status: Confirmed → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
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.