TehPirate
TehPirate

Reputation: 164

How can I programmatically resize SVG file with svgwrite in python?

My current workflow is using svgwrite to generate my svg file and import into inkscape to resize and align to export to gcode. I'm looking for a way to do this programmatically via cli. I've tried a couple svg-resizing repo's from github however they don't work well shrinking and svgwrite doesn't have a fixed output size option. I've thought of maybe creating an empty rectangle of the size I require with svgwrite's drawing class but I'm not sure how to add my svg file and have it fit to its container (the empty rectangle).

Any and all suggestions are greatly appreciated.

Upvotes: 0

Views: 904

Answers (0)

Related Questions