5

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

1 Answer 1

8

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.

4
  • 1
    Can this be done after the image has been copy-pasted by some optimization procedure?
    – Lukas
    Mar 30, 2015 at 8:26
  • How does an optimisation procedure copy-paste something?
    – Wrzlprmft
    Mar 30, 2015 at 8:46
  • 1
    The 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.
    – Lukas
    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
    Mar 31, 2015 at 8:58

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.