Skip to content

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

License

Notifications You must be signed in to change notification settings

laurent-d/AutomatedStrokeToPath

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%