Inkscape.org
Beyond the Basics Clip shadow to cover the stroke
  1. #1
    meetdilip meetdilip @meetdilip
    *

    Hi, I have a text path with stroke. I duplicated the text, made it black and used Blur so that it shows inner shadow

     

     

    Then I duplicated the original text with stroke and used it to clip the shadow. As you can see from the image above, half of the stroke has no shadow cover. There is a strong blue outline which is the stroke outside the shadow. I wonder whether there is anything we can do to fix it. Thanks.

     

    PS : It is not a text but a path which I generated using Trace Bitmap. But the stroke was added naturally. Regret the confusion

  2. #2
    Nathan Lee Nathan Lee @ainsleo

    Hi, would you be able to share an example file?

    I'm not too sure what the issue is, but taking a guess based on your steps... The clip will use the clip path (ignoring stroke), while a mask will use the stroke (but will also change depending on color).

    Since the clip uses the path, half the stroke will be inside the clip, and half outside. Not sure what the best solution is unfortunately. You might want to play with masks and/or clones but someone may know a better approach. This is assuming that is the issue.

  3. #3
    meetdilip meetdilip @meetdilip
    *

    I used stroke to path. Made everything black for shadow and clip using this full path text. It works great. Thanks

  4. #4
    Nathan Lee Nathan Lee @ainsleo
    *

    Ah, I thought there were two separate stroked objects. Yes, the issue is as described in my last comment (assuming the attached file is intended behavior).

    I simple converted the path to stroke and combined it with the fill to create the clip-path for that, but if you want to edit your file easier (so changes to stroke width don't require changes to the clip), you'd want to use clones and a mask.

    Someone may have an even better idea on how to do this though.

    Also, since you're using a filter anyway (blur), you might want to try the Drop Shadow filter (Filters > Shadows and Glows > Drop Shadow...) with Inner Cutout, and 0 px horizontal/vertical offset.

    Edit: Inner may also be good. Not sure what the difference between them is.

    Screenshot From 2021 09 03 02 28 14
  5. #5
    meetdilip meetdilip @meetdilip
    😀

    Awesome!! Had no idea we have so many options. I will try the mask method too :)

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Clip shadow to cover the stroke