How to save real image size after resizing in Inskape?

I have imported several photos in an Inkscape file and then reduced them manually inside my document. In order to get a lighter Inkscape document size, is there a way to save the document by taking into account the reduced images sizes? Or do I have to reduce my images before importing them into Inkscape?

I remember such a function in Microsoft Office Word, where it was possible to save only the real size of images clipped inside the Word document.

I hope this is clear enough… Many thanks for help and advices in advance.


You need to modify the image with an external editor and re-embed it.

When you embed a raster image in Inkscape, it embeds it in the href of the image using a data URI:

<svg:image xlink:href="data:image/jpeg;base64,[...]"/>

When you resize an embedded image in Inkscape, what it does it is changes the height and width attributes of the <svg:image>; it does not change the data URI, meaning the image itself is not changed. You can see this yourself by looking at the XML view in Inkscape and comparing the data URI before and after resizing the image. In most cases, this is desirable behavior, since Inkscape is not really the right tool for modifying raster graphics (always use the right tool!).

To extract the embedded image, select it and use Extensions > Images > Extract Image. If you need to extract multiple images from an SVG file, you might want to look at this answer as well.

Source : Link , Question Author : wiltomap , Answer Author : Community

Leave a Comment