0

I have a great amount of figures with the same properties and I would like to crop them all in the same way.

Is there a faster way to do it in Inkscape instead of doing it one by one?

  • 1
    Maybe Image-magick is more appropriate for that task. But I don't know all abilities of inkscape. – user unknown Sep 2 '16 at 21:42
  • If your figures are all SVG, then you may script the changes using an XML editor. – Juancho Sep 3 '16 at 17:46
  • Can you provide a bit more information? (1) Are all the figures in separate SVG files or all in a single file? (2) Are you intending to to end up with a PNG file (meaning the cropping could be done during export) or do you want to crop and end up with another SVG file? (3) What is the specific rule by which you are cropping? For example, to a specific size, fit-canvas-to-image, or something else. (4) Will any images need to be scaled up or down during cropping? – Scribblemacher Dec 5 '16 at 12:57
2

At least in Inkscape 0.91 r (May 20 2016), I could directly set one clip on multiple objects. Setting the clip worked for vector and raster image objects at the same time.

  1. Place the objects you want to clip on top of each other.
  2. Place the mask you want to use for clipping on the very top.
  3. Select everything and click Object > Clip > Set. The topmost object should be used as a clip for each object below.

The image below shows the scene before (top left) and after (bottom left) clipping. The black object was used for clipping. For clarity, the right-hand side shows the objects in the background.

Same clip on multiple objects

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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