trim image to selection

Asked by Chris Pergantis

I wish to take an image created in inkscape and select only a portion of it. To do the same in other image software I would most commonly select the area I want to include then use a crop function to remove everything that is not within the selected area. What steps should perform to do this in inkscape? The output from this image will be made in SVG format. and should be trimmed or cropped. Perhaps the purpose for the resulting SVG might be important. It will be used to make lightweight backgrounds as Website graphics.

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

There is no such function - yet. For web graphics, masks and clipping (which are available), are usually also not a good idea, because they do not work reliably in all browsers. (mask and clip only conceal the contents, but do not remove it).

So the only 'real' option you have , if you want to use the svg directly on your web site, is to

1 -create a shape in the size you want and position it over the image so it covers the part of the image you want to keep.

2 -Use Ctrl + D to double it
3 -Use the node tool to select single paths of the image which are outside the desired area
4 -Use Shift and click to also select the doubled covering shape.
5 -Use Ctrl + * to choose the path operation 'overlap'

Repeat from step 2 with every part of the drawing which sticks out. I know this is tiresome, repetitive work, especially if you have a lot of objects sticking out over the margin of the picture, but this is still the fastest method I found.

Revision history for this message
Chris Pergantis (c-pergantis) said :
#2

I have managed to merge all of the objects into one objects group. I wil0l try your suggested approach and let you know here in the next couple of days how I did. Thanks in any case for taking time to answer.

Revision history for this message
Hachmann (marenhachmann) said :
#3

No problem, Chris, you're welcome.

Can you help with this problem?

Provide an answer of your own, or ask Chris Pergantis for more information if necessary.

To post a message you must log in.