15

Clipping in Inkscape keeps visible only the (parts of) selected objects which are under the clipping object. How can I change it (invert it) so that only the (parts of) selected objects that our not under the clipping object are kept visible?

3 Answers 3

14

There's no way to invert a clipping path. Use masking instead of clipping.

Create a mask and group all the objects in it. White objects in the mask will reveal the masked object, black areas will be masked to transparent. Grey objects will have semi transparency.

enter image description here

1
5

Just wanted to add my approach for anyone else who might be having trouble with this:

  1. Layer the object you want to cut away on top.
  2. Select them both.
  3. Go to: Path > Difference
1
  • Note that Path > Difference only works on un-grouped objects. If you have multiple objects in a group, ungroup them first, then apply Path > Difference on each object in the group and the shared background.
    – OXiGEN
    Commented Sep 23, 2020 at 20:01
4

In recent versions of Inkscape (version 1.0 and above), there is indeed a way to invert clips. It applies to paths but not images. However, there is a workaround to get it to work with images!

For Paths

For paths, there is no trick, just follow the steps below:

  • Select the two shapes.
  • Go to the menu and choose Object > Clip > Set Inverse (LPE).
  • Now, you should get the expected result.

For images:

In order to get this working with raster images (PNG, JPEG, etc.), we need a workaround:

  • Select the image and go to the menu: Object > Pattern > Objects to Pattern.

  • Now select the pattern (image) and the shape (for clipping).

  • Go to the menu and choose Object > Clip > Set Inverse (LPE).

  • you should get the expected result (see the animation below).

  • If you need a permanent result for that image, go to the menu: Edit > Make a Bitmap Copy.

See the animation below on how to apply inverted clip on images:

Animation

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.