Mobile app version of vmapp.org
Login or Join
Jennifer810

: How do I clip parts of my Inkscape diagram such that its corners are perfectly rectangular? I've been trying to edit a SVG diagram (here in my Google Drive you can find it if having the

@Jennifer810

Posted in: #Inkscape #Shapes

I've been trying to edit a SVG diagram (here in my Google Drive you can find it if having the original SVG helps you in assisting me), below is a PNG bitmap of the original labelling what I want changed.

How do I make the sides of my drawing nice, homogenous (in shape, not colour) and rectangular so that there are no gaps or curves sticking out of the sides of it. The label 2 in the below bitmap shows some examples of what I mean, like where the brown dashed line extends past its intended bounds or where the brown cell bed below does not line up with the edges of the pink bucket-filled area.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jennifer810

1 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami567

You essentially have three options:


Use a mask:


Group everything that you want to mask.
Create a rectangle that covers exactly what you want to see (make it transparent to ease adjusting it).
Select your rectangle and the group and object → mask → set.


This is quickest, easiest and arguably best practice, but may break when you export to a different format.
Create a white (background-coloured) frame masking everything that sticks out. To do so:


Create a rectangle that covers exactly what you want to see (make it transparent to ease adjusting it).
Create a rectangle that covers everything that you want to mask.
Select both rectangles and use path → exclusion.
Make the frame you just created white and raise or lower it such that it is between the text and the graphics.


This is still very quick, but robust for any reasonable export. However, it does not work if you want the background to be transparent.
Crop everything manually:


Create a rectangle that covers exactly what you want to see (make it transparent to ease adjusting it).
For every object that sticks out:

Convert selected object to path or convert selected object’s stroke to path, if necessary.
Create a duplicate of the rectangle.
Select both and use path → intersection.



This is obviously very tedious, but works under exports as well as if you want the background to be transparent. There may be slight imperfections to the borders on the pixel level when rendered.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme