9

I downloaded this file from Wikimedia Commons (1) but there's a heap of the picture that doesn't fit on the document page and I'd like to know I can cut what doesn't fit on the page off so that it no longer appears in the SVG. Here is a screenshot illustrating what I mean. enter image description here

2
  • 1
    Are you meaning to export just the interesting area or to clip the image? Nov 21, 2014 at 15:50
  • Clipping it would probably be the one.
    – Josh Pinto
    Nov 21, 2014 at 16:01

1 Answer 1

8

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

    enter image description here

  • Draw a rectangle filling the whole page (or the area we want to clip out of the SVG):

    enter image description here

  • 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

    enter image description here

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

    enter image description here

1
  • 1
    Setting 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.
    – Kevin Cox
    Jun 20, 2022 at 14:37

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.