Feature request: Remove clips / masks recursively
Summary:
Scientific figures created by other programs as well as imported PDF / eps files often contain hundreds of unnecessary clip paths and masks that do not fulfill any function, and that make editing those files a nightmare.
I would like to see a function in Inkscape, potentially an extension, that removes all clip paths (or masks) from the selection/the document recursively.
This would make life easier for scientists who need to work with those files on a daily basis.
Steps to reproduce:
- open Inkscape with a file with hundreds of clip paths
- try to edit it
What happened?
Objects vanish unexpectedly (as you move them beyond the limits of the clip path).
What should have happened?
It should be possible to clean the clip paths from the files. I know it is easy to do that by editing the text file and removing all def entries that refer to clip paths/masks as well as all attributes from the objects that refer to those defs, but a graphical function would be so much more helpful for most people.
Version info
Inkscape 1.4.1-rc (248a3f6024, 2025-03-18)
Compile (Run)
GLib version: 2.80.0
GTK version: 3.24.41 (3.24.41)
glibmm version: 2.66.7
gtkmm version: 3.24.9
libxml2 version: 2.9.14
libxslt version: 1.1.39
Cairo version: 1.18.0 (1.18.0)
Pango version: 1.52.1 (1.52.1)
HarfBuzz version: 8.3.0 (8.3.0)
OS version: Linux Mint 22.1