trunk: broken rendering of gradients with "objectBoundingBox" as gradient units (rev >= 12528)

Bug #1229573 reported by su_v
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Martin Owens

Bug Description

Rendering of the example file 'share/examples/gradient.svg' is broken on load.

Steps to reproduce:
1) launch inkscape (default prefs, default new document)
2) open 'gradient.svg' from '/usr/share/inkscape/examples'

-> most of the objects with radial gradients are barely or not visible, objects with linear gradients are visible, but rendered with a single color.

3) select all (Ctrl+A) and nudge with arrow keys

-> gradient definitions are rewritten, and all gradients appear to be rendered in correct position and size.

Possibly (not verified) a problem with "userSpaceOnUse" vs "objectBoundingBox" (gradientUnits): inkscape writes gradient definitions only in 'userSpaceOnUse', but (used to) support 'objectBoundingBox' units for rendering.
Note: If attribute ‘gradientUnits’ is not specified, then the effect is as if a value of 'objectBoundingBox' were specified.

See also:
<http://www.w3.org/TR/SVG11/pservers.html#LinearGradientElementGradientUnitsAttribute>

Revision which AFAICT triggers this regression:
12528: Remove setItemBounds and _item_bbox because aren't sensible, replace with bbox.
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12528>

Attached: gradient.svg from current trunk (r12583), exported bitmap images from r12526, r12528, r12583 (all on OS X 10.7.5).

Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :
description: updated
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape trunk revision 12583.

Changed in inkscape:
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

Looks very ugly on canvas (but similar to comment #4 when exported to PNG).

Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Setting bug importance, in accordance with
<http://wiki.inkscape.org/wiki/index.php/Bug_management#Bug_importance>
«(…) SVG-compliant documents misinterpreted; (…)»

Changed in inkscape:
importance: Undecided → High
Revision history for this message
su_v (suv-lp) wrote :

Also affects the tutorials shipping with Inkscape (header is not rendered visibly).

su_v (suv-lp)
summary: - trunk: rendering of 'share/examples/gradient.svg' broken (rev >= 12528)
+ trunk: broken rendering of gradients with "objectBoundingBox" as
+ gradient units (rev >= 12528)
Revision history for this message
Martin Owens (doctormo) wrote :

rev 12528 was (or should be) complete reverted. I'll look into it tomorrow. Thanks for reporting suv.

Revision history for this message
Martin Owens (doctormo) wrote :

A reversion of the svg:patern bbox to _filter_bbox fixes this issue with the example files. See r12646.

Changed in inkscape:
assignee: nobody → Martin Owens (doctormo)
status: Triaged → Fix Committed
Revision history for this message
su_v (suv-lp) wrote :

FIx confirmed with r12646, based on the know test cases - thx a lot!

Changed in inkscape:
milestone: 0.49 → none
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.