ViewBox attribute not supported

Bug #166885 reported by jimmac on 2005-08-23
18
Affects Status Importance Assigned to Milestone
Inkscape
High
Thomas Holder

Bug Description

Original Title - viewBox with preserveAspectRatio="none" misinterpreted

After strugling with different renderings between
inkscape and librsvg, it turns out the viewbox
attribute seems to be misinterpreted in Inkscape.

http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute

Tested with the sample case SVG -
http://www.w3.org/TR/SVG/images/coords/ViewBox.svg.
Editing the viewbox to be stretched by 50% on the X axis:

<svg width="150px" height="200px"
     viewBox="0 0 1500 1000" preserveAspectRatio="none"
     xmlns="http://www.w3.org/2000/svg" version="1.1">

rsvg render corresponds to the w3c result
http://www.w3.org/TR/SVG/images/coords/ViewBox-Width150.png

Attaches is rsvg output and inkscape output.

Other attachments

Other attachments

I'm confirming this in accordance to <URL http://wiki.inkscape.org/wiki/index.php/BugTriageProjects>.

Changed in inkscape:
status: New → Confirmed
ScislaC (scislac) wrote :

Given that the core of this problem is Inkscape's lack of ViewBox support, I'm going to be marking all other related bugs as duplicates of this.

description: updated
beracah (beracah) wrote :

The other bug report said to add comments to this one: re: Adobe being the only one using viewbox?
ViewBox is also used by ConceptDraw Pro, which can export vector graphics of flowcharts/etc.

Thomas Holder (speleo3) wrote :

fixed in svn revision 20353.
note: removing some of the duplicates, they are related to viewBox but actually they address different problems (not preserveAspectRatio)

Changed in inkscape:
assignee: nobody → speleo3
status: Confirmed → Fix Committed
jazzynico (jazzynico) on 2009-04-20
Changed in inkscape:
milestone: none → 0.47
ScislaC (scislac) on 2009-11-24
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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