Apply filter to only stroke or fill

Asked by fabb

In Illustrator, I can apply a filter (like Gaussian Blur) to either a whole object, or just to its stroke or fill.

Is there a way to do that in Inkscape without duplicating an object?

(I skimmed through the SVG 1.1. specification, but there was no obvious way to me on how to do it)

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
fabb (milkservice) said :
#2

I still have this question.

Revision history for this message
su_v (suv-lp) said :
#3

As far as I understand there is no way in the current filter implementation (based on SVG 1.1) to apply a filter just to the stroke or fill of an object.

The common input sources 'FillPaint' and 'FillStroke' for filter effects are not implemented in Inkscape, but to me it is unclear from the definition in the spec if they would actually help to implement your requested feature. From testing with Squiggle (Batik 1.7) they seem to take the fill or stroke color (paint) as input, but not limit the effects region to the filled or stroked area (the filter effects region appears to just get filled with the paint like with feFlood).

See also <http://wiki.inkscape.org/wiki/index.php/Filter_Effects> for the status of SVG filter effects support in Inkscape (possibly slightly outdated).

Can you help with this problem?

Provide an answer of your own, or ask fabb for more information if necessary.

To post a message you must log in.