scour
scour copied to clipboard
Add option to remove transforms on group (for optimized SVGs)
Optimized SVGs with transforms on groups should have an option to remove that transform and apply it to the group's children, all while keeping the group intact.
It's a very hard to predict if doing so will increase or decrease file size but I agree that in some cases it might be desirable.
It's basically the opposite idea as #48 (where it was requested to move transforms to the parent if possible).
Except I don't want to move the transform on the elements, I want to remove the transform and apply it to the elements attributes (not transforms). IE change the coordinates, so that the position is the same as when there was a transform, but without the need to keep the transform attribute. If the child element is a path, the coordinates are rewritten to reflect the transform that gets removed.
It's basically like when you ungroup and regroup within Inkscape, except you wouldn't have to do it to each group if you have a large file.