Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wish to round the corners of some SVG documents in a such a way that it hides whatever gets in that corner. Like a clipping Mask of any other objects.

Is this possible in SVG, or in Inkscape?

share|improve this question
up vote 0 down vote accepted

Mask or clipping an SVG layer (an object or even a group) can be done using clipPath. This page provides excellent instructions on how to create and apply a clipPath:

These are the two pieces that are essential:

   <clipPath id="hex-mask">
      <polygon points="270,0 0,160 0,485 270,645 560,485 560,160" />

<image clip-path="url(#hex-mask)" height="100%" width="100%" xlink:href="image.jpg" />

Notice how you first define a clipPath with an ID. This defines the area of the clip or mask. Then you apply that to the element you want to mask using this syntax:


Whenever I've used this functionality, I've edited the svg file manually, so I'm not familiar with how or even whether it's possible to do in Inkscape. But it's fairly easy to edit the svg files with a text editor.

Hope that helps!


share|improve this answer
thank you, it worked, and yeah sadly i cant make this in Inkscape, yet after I add the mask by hand, and re open it in Inkscape the masking works correctly in it! – NaGeL182 Jan 14 '14 at 11:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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