I have an svg image made in Inkscape with about five raster images embedded in it. Each of these images is used many times (up to 72). Each of these images is small (<1MB), but judging from the file size (>80MB), the images are not reused but embedded over and over again. Can Inkscape somehow minimize it and have each unique raster embedded only once?
1 Answer
Yes, it can.
Embed the original image once and for each other instance of that image use a clone (Edit → Clone → Create Clone) and not a duplicate of the original image.
-
1Can this be done after the image has been copy-pasted by some optimization procedure?– LukasCommented Mar 30, 2015 at 8:26
-
How does an optimisation procedure copy-paste something?– Wrzlprmft ♦Commented Mar 30, 2015 at 8:46
-
1The image has been copy-pasted many times within the image. The question was, whether there is some procedure in Inkscape that would look for identical bitmaps and make them to clones instead of repeated instances.– LukasCommented Mar 31, 2015 at 7:10
-
I am not aware of something. Perhaps you can take a look at the XML source and write a small script that does the job. Alternatively you can manually replace them using Paste Size and aligning.– Wrzlprmft ♦Commented Mar 31, 2015 at 8:58