Use viewBox to explicitly define a coordinate system

Bug #171203 reported by Bug Importer on 2006-03-15
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
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
programs.

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.

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.

Originator: NO

A viewBox is important for cliparts. These are not meant to have fixed
dimensions, but should scale as needed.

OpenClipart.org 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
implications.

vonHalenbach (lustik) on 2007-12-26
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed

Fixed in r12557.

Changed in inkscape:
assignee: nobody → Matthew Petroff (matthewpetroff)
status: Confirmed → Fix Committed
su_v (suv-lp) on 2013-09-20
Changed in inkscape:
milestone: none → 0.49
Bryce Harrington (bryce) on 2015-02-21
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