trunk: incorrect objectBoundingBox for FER (rev >= 12362)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Alvin Penner |
Bug Description
Follow-up report to
- Bug #1188336 “blur of 1% is clipped too much”
<https:/
The SVG 1.1 specification defines for the objectBoundingBox used for filter effects regions:
«(…) The bounding box is computed exclusive of any values for clipping, masking, filter effects, opacity and stroke-width. (…)»
<http://
Current trunk however uses the visual bounding box (i.e. including the stroke-width) to calculate the effective filter effect region. This can result in very different output regions of filter effects, depending on the style properties of the filtered objects.
Compare attached files:
- sample SVG file
- reference rendering Batik 1.7 (Squiggle)
- screenshot Chromium 31.0.1640.0 (224635)
- bitmap export rev 12359
- bitmap export rev 12362
- bitmap export rev 12586
The output of r12359 matches the rendering of Batik and Chromium, the later ones (r12362, r12586) render a differently sized filter effect region.
Note: the sample file uses circles with different geometric sizes, but identical visual bounding boxes due to varying stroke widths.
Related commit:
Revision 12362: use visual bbox in calculation of filter area (Bug 1188336)
<http://
Confirmed on Windows XP, Inkscape trunk revision 12583.