I downloaded a file from Wikimedia Commons. There is a heap of the picture that doesn't fit on the document page; I'd like to know how I can cut off what doesn't fit on the page, so that it no longer appears in the SVG.
1 Answer
To make a downloaded SVG fit the page in Inkscape we have two options:
1. Clip the image to the page dimensions
Import the SVG to a predefined page size
Draw a rectangle filling the whole page (or the area we want to clip out of the SVG):
Select both, the imported object(s), and the clipping rectangle
(or choose Edit > Select all Ctrl + A)Choose Object > Clip > Set to clip to the size of the rectangle
Note that clipping will only define what parts of an object will be displayed but it will not remove the objects outside the clipped area. Any clipping can be undone by selecting Object > Clip > Unset.
2. Adjust page size to the imported objects (or a selection)
- Choose File > Document Properties Shift + Ctrl + D
On the Page Tab open the Resize page to content and choose Resize page to drawing or selection
-
2Setting a clip appears to visually hide the objects but they are still present in the save file. This is both a risk of leaking unintended information and increases file size. Commented Jun 20, 2022 at 14:37