Inkscape.org
Beyond the Basics Why is "Clean up document" not run by default when saving?
  1. #1
    greatpet greatpet @greatpet

    I have an svg file which has been edited for a long time over many iterations, containing many layers, but eventually the file has just one layer containing a filled rectangle and a text box. Somehow lots of garbage has accumulated during the editing, and the file size is 70 MB. After lots of attempts to reduce the file size, eventually I realized I just needed to click the menu File -> Clean up document, and the file size collapsed to a few kilobytes. I'm wondering why inkscape doesn't remove redundant information from the file by default?

  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD

    I agree in most cases you should open the airlock and flush this stuff into the void.  But there are cases where there's a useful pattern or filter or something in there that you want to keep, even if you're not currently using it in your project.  That's why it's not an automatic function.

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    There are some attributes that can be erased when performing operations. In the Preferences, Input/output>SVG Output.

    Use at your own risk.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Why is "Clean up document" not run by default when saving?