Inkscape.org
Beginners' Questions Maintain a straight edge when applying texture
  1. #1
    allelopath allelopath @allelopath

    I have an object to which I apply Filters > Textures > Rough Paper The object has straight edges and when I apply the filter they become irregular. I would like to get the texture but keep the edges straight. How can I do this?

     

    See attached svg

    Roughpapertest
  2. #2
    allelopath allelopath @allelopath

    Select the object, and then go to Filters -> Filter editor.

    Click on Displacement map (this is the component that randomly displaces the shape (and its border).

    Select a scale of 0.

  3. #3
    Xav Xav @Xav👹

    A more general solution to this type of problem is to clip the final shape using a duplicate of the original shape. In this case I would duplicate the unfiltered object, then scale the original up a little before applying the filter. That should ensure that it extends fully beyond the duplicate shape (which needs to be on top). Select both an use Object > Clip > Set.

    The advantage of this approach is that it's more general, and will work on filters that can't be constrained so easily by changing their parameters.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Maintain a straight edge when applying texture