How can I turn circular icons into square icons via Command Line/Terminal ?

Post questions on how to use or achieve an effect in Inkscape.
nick9
Posts: 2
Joined: Fri Sep 15, 2017 1:06 am

How can I turn circular icons into square icons via Command Line/Terminal ?

Postby nick9 » Fri Sep 15, 2017 1:15 am

Image

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How can I turn circular icons into square icons via Command Line/Terminal ?

Postby Moini » Fri Sep 15, 2017 8:36 am

Depends on the structure of your SVG files. Basically, you would need to select the circle object, find out where it is centered (if they are in different positions), then put a rectangle object into the same position. If the size of circle and rectangle is different, as in your png image, then you'd need to calculate the new position, too.

The choice of tools depends on your abilities. I'd probably not use the Inkscape command line for this, but an xml library in the language of my choice (in this case, python), or I'd create an extension that can be called from the command line.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”