If you put clipPath into defs and use inkscape to convert svg to png, defs is removed automatically.
Do you understand what I mean?
If not send mail to novofox@outlook.com directly.
This is very tricky experience and knowledge.
If you work svg and inkscape, this knowledge will be very helpful. 😉