ViewBox attribute not supported

Bug #166885 reported by jimmac
18
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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.

Revision history for this message
jimmac (jimmac) wrote : rsvg rendering

Other attachments

Revision history for this message
jimmac (jimmac) wrote : Inkscape rendering

Other attachments

Revision history for this message
Buliabyak-users (buliabyak-users) wrote : Re: viewBox with preserveAspectRatio="none" misinterpreted
Revision history for this message
Peter Lewerin (vermeil-deactivatedaccount) wrote :

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

Changed in inkscape:
status: New → Confirmed
Revision history for this message
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
Revision history for this message
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.

Revision history for this message
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)
Changed in inkscape:
milestone: none → 0.47
ScislaC (scislac)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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