Inkscape.org
Creating New Extensions Remove Redundant Objects - Extension
  1. #1
    inklinea inklinea @inklinea⛰️

    ##############################################################################

    Remove Redundant - An attempt to remove objects that do not contribute to

    The overall appearance of the SVG (Does not account for filters)

    An Inkscape 1.2.1+ extension
    ##############################################################################

    https://gitlab.com/inklinea/remove_redundant

  2. #2
    Tyler Durden Tyler Durden @TylerDurden
    *

    I did not have success using commit 71b934b7. It removed all selected objects. 🤔

    Inkscape 1.3.2 (091e20e, 2023-11-25, custom)

        GLib version:     2.78.1
        GTK version:      3.24.39
        glibmm version:   2.66.6
        gtkmm version:    3.24.8
        libxml2 version:  2.11.5
        libxslt version:  1.1.38
        Cairo version:    1.18.0
        Pango version:    1.50.14
        HarfBuzz version: 8.2.2

        OS version:       Windows 10 22H2

     

    https://media.inkscape.org/media/resources/file/flattten.svg

  3. #3
    Tyler Durden Tyler Durden @TylerDurden
    *

    I don't know if it's possible, but rather than the extension removing the redundants, it be useful to have the options to modify the selection:

    • select only the occluded objects
    • select only the non-occluded objects

    Users can then modify/delete/duplicate as they see fit.

  4. #4
    inklinea inklinea @inklinea⛰️

    Yes - it did work for me with spray clones etc.

    However no for the svg you linked to.

    I'm not sure 100% why it did that. I get the same result.

    Also a couple of circles with very tiny bits showing through were deleted - which is wrong. 

    I think I will add it to the selection plus extension once I have correct for that. 

    Thanks Tyler

Inkscape Inkscape.org Inkscape Forum Creating New Extensions Remove Redundant Objects - Extension