Code Monkey home page Code Monkey logo

automatedstroketopath's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.