/AutomatedStrokeToPath

A shell script to batch convert all strokes in a batch of SVGs to paths

Primary LanguageShellDo What The F*ck You Want To Public LicenseWTFPL

This is an updated version of AutomatedStrokeToPath from 1upkd/AutomatedStrokeToPath 1upkd/AutomatedStrokeToPath to be compatible with Inkscape 0.92 ++ See the changelog https://wiki.inkscape.org/wiki/Using_the_Command_Line

Convert all strokes in Inkscape SVGs to Paths

Many iconfont generators (IcoMoon, for example) require the SVG to have only paths and not strokes.

So I wrote a shell script to batch convert strokes in all glyph SVGs to paths using the inkscape command line options

Requirements

  1. This script works on Linux based systems. For windows see this

  2. This script requires that inkscape is installed and is available on the command line

You can check for this as follows

$ inkscape -V
Inkscape 1.1.1 (c3084ef, 2021-09-22)

Usage

  1. Put all your SVGs in a folder alongside this script
  2. Run the script as follows:
$ ./stroketopath.sh <foldername>

My font development workflow

Check out font developemnt workflow of @thekarthik : icanfont

P.S.: Inkscape GUI opens and closes for every SVG file being processed. Yes, it is annoying but I don't know how to prevent that.