incorrect filter effects region

Bug #229246 reported by sas
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

The attached SVG file (moon.svg) is rendered incorrectly in Inkscape (SVN revision 18586): the blur is clipped to the bounding box of the crescent. It's as if Inkscape assumes filterUnits="objectBoundingBox" even though the file specifies filterUnits="userSpaceOnUse".

(I also see strange banding at some zoom levels. This may be related to bug 181995, and in any case is not the subject of the current bug report.)

Revision history for this message
sas (sas-sas) wrote :
Revision history for this message
sas (sas-sas) wrote :

Here is what the image should look like (as rendered by Batik).

Revision history for this message
sas (sas-sas) wrote :

Here is how Inkscape renders it.

Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Ubuntu 9.04, Inkscape rev. 21460.
Not only the filter is not displayed as it should, but it's incorrectly exported to PNG and PDF (not tested with other formats). The SVG file looks good when opened with Firefox 3.0.10.

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
summary: - incorrect filter effects region
+ incorrect filter affects region
Revision history for this message
su_v (suv-lp) wrote :

@Jimmy - I think the region (resulting visual bbox) of the filter effect is meant, not the region affected by the filter. ;-)

summary: - incorrect filter affects region
+ incorrect filter effects region
Revision history for this message
Jaspervdg (jaspervdg) wrote :

Partially fixed now, Inkscape will respect the userSpaceOnUse value but computes percentages w.r.t. the bounding box of the object. The specification is a little unclear about this, but it would probably be better to use the viewport dimensions (in the local user coordinates) as reference (I think Batik also does this). This is slightly odd when transformations are used (for example, Batik also renders this image with a clipped blur at the top, because of the translation used on the path), but it would correspond to the behaviour of a rect with x/y/width/height in percentages for example.

Revision history for this message
theAdib (theadib) wrote :

the attached image shows a regression in filters.

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

Fixed in r12073.

Note, fix only works for viewport from root SVG element.

Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

No longer reproduced in current master; closing as part of Inkscape's bug migration.

Closed by: https://gitlab.com/jhofinger

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.