

Prkos wrote: Hey Ivan! Got any tips on what primitives to use to create a filter that makes all white areas transparent?īTW I tried the new filters they are a great addition, and it's nice they are all marked as new makes it easier to explore. We get this type of question so much, that I'm in the process of writing kind of an overview, to put in an FAQ for this forum.

But if it is a rather simple line drawing, like a cartoon, it should be "doable" ( ) especially if it's all solid white and you want only full transparency. If your bitmap is a photo or something like it, this will be very difficult to do with Inkscape (if not impossible). Unfortunately, I can't remember what it is But maybe someone else can tell you? Manipulating the XML code, I think? However, if you want alpha transparency, where there is some solid white, which would be fully transparent, and "shades" of white which would be partiallly transparent, while "not white" would be opaque, you'll do better with a Mask, rather than a Clip.

That said, I believe there is some sort of trick by which this can be done. But with vectors, no pixels, so no way to select the white areas. Raster graphics programs achieve this by selecting every pixel with white in it. Note: if you made a mistake in removing some foreground pixels, simply change the foreground color to white and paint over the problem area to bring back the foreground pixels.The reason Inkscape can't select colors, is because of the nature of vector graphics, which does not recognize pixels. The background is removed in a non-destructive manner from the image.

Draw a selection polygon roughly around the foreground object in the image using the Polygonal Selection Tool, as shown below.In the Layers pane on the right, mouse right click on the paint layer.Ī transparency mask sub layer is created underneath the paint layer.Like other image editing software such as Gimp or Photoshop, Krita has similar tools to remove the background of an image non-destructively using transparency masks.
