unexpected behaviour of FER of line, with blur, and after rotation

Bug #1232797 reported by Alvin Penner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

- draw line at 45 degrees or so.
- use Fill and Stroke dialog to add blur
- note that the dotted line bbox is a square as expected
- use F1 Select tool to rotate the line so it is horizontal
- note that the bbox remains a square instead of the expected thin horizontal rectangle
- set the blur to 0 and confirm that the bbox collapses to a horizontal line as expected

attached svg contains two lines, the original 45 degree line at left and the rotated horizontal line at right.

- reproduced on rev 12621 and rev 12620
- not reproduced on Inkscape 0.48.4

Revision history for this message
Alvin Penner (apenner) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

attached is a screenshot of the two bboxes

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

Attaching another sample file which better illustrates where Inkscape goes wrong (compare rendering in a current browser): the filter effects region should actually be rotated along with the rotated object (note that filtered objects always get a preserved transform attribute, and filters ought to be applied before the transformation).

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

Sample SVG redone with latest trunk.

tags: added: filters-svg transformations
Revision history for this message
Alvin Penner (apenner) wrote :

if I understand these images correctly, then, this looks as if the bbox is actually correct, but it is the filter clipping region that is wrong, because the clipping region has not roteted?

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

On 2013-09-29 19:38 +0200, Alvin Penner wrote:
> (…) but it is the filter clipping region that is wrong, because the
> clipping region has not roteted?

That's my interpretation, yes - but I could be wrong (I'm not an export wrt to the SVG 1.1. spec, and SVG filter effects). So far though I haven't found an SVG renderer which doesn't rotate the filter effects region for the paths on the right (except librsvg, but that usually is not a reference for Inkscape).

Revision history for this message
Alvin Penner (apenner) wrote :

here is what I get as a screenshot using Adobe SVG Viewer 3.0 in IE8. Sounds like this is consistent with what you are getting. I think this would be a decent final result if we could achieve it.

(This is the only independent svg viewer I have, IE9 has its own native svg viewer, but it does not render filters at all, as far as I can tell.)

Revision history for this message
su_v (suv-lp) wrote : Re: [Bug 1232797] Re: unexpected behaviour of bbox of line, with blur, and after rotation

Attached are the screenshots of
- Squiggle (Batik 1.7),
- Opera 12 (old 'Presto' rendering engine),
- Opera Developer 18.0 (Blink-based webkit engine),
- Chromium (lastet snapshot build 32.0.1656.0 (225895)),
- Firefox 0.22 (two releases behind current 0.24).

Revision history for this message
su_v (suv-lp) wrote : Re: unexpected behaviour of bbox of line, with blur, and after rotation

Correction (Firefox version):
- - Firefox 0.22 (two releases behind current 0.24).
+ - Firefox 22.0 (two releases behind current 24.0).

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

… and the screenshot of rsvg.view-3 librsvg (git master @1e22da8).

Revision history for this message
jazzynico (jazzynico) wrote :

Maybe related (reproduced with r12650, not with 12583):
1. Draw a straight horizontal line.
2. Apply a filter (blur).
-> the bbox expands horizontally, but is set to zero vertically, and thus the line disappears.

Revision history for this message
Alvin Penner (apenner) wrote :

-> the bbox expands horizontally, but is set to zero vertically, and thus the line disappears

this behaviour is related to rev 12621, Bug 1229971. Rev 12621 essentially reversed the changes made in Bug 1188336.

Alvin Penner (apenner)
summary: - unexpected behaviour of bbox of line, with blur, and after rotation
+ unexpected behaviour of FER of line, with blur, and after rotation
Revision history for this message
Alvin Penner (apenner) wrote :

if there is no objection, I would like to rename this to focus on the FER not the bbox. As the above screenshots show, the bbox, which is the horizontally aligned square (dotted line) which encompasses the FER, is actually behaving reasonably. The unexpected behaviour is in the FER after rotation. It should be rotated and clipped, and the clipping is not occurring.

su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
status: New → Confirmed
su_v (suv-lp)
tags: added: regression
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Medium
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91 → 0.92
Alvin Penner (apenner)
Changed in inkscape:
status: Confirmed → Invalid
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.