scour icon indicating copy to clipboard operation
scour copied to clipboard

Add option to remove transforms on group (for optimized SVGs)

Open ubik23 opened this issue 8 years ago • 2 comments

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.

ubik23 avatar Feb 08 '17 20:02 ubik23

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).

Ede123 avatar Feb 10 '17 17:02 Ede123

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.

ubik23 avatar Feb 10 '17 23:02 ubik23