Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.18 KB

File metadata and controls

29 lines (21 loc) · 1.18 KB

SVGRepair

Script to repair the most common options:

  • Convert colors to cmyk
  • Fix textpath issues
  • Replace fonts

Configuration:

  • Set convertColors to true for enabling colorconversion
    • Optionally add overrides to the defaultColorMappings array
  • Set fixTextOnPath to true for enabling textOnPath fixups
  • Add fonts to defaultFontMappings to enable fontreplacement

FixTextPath

Adobe Illustrator does not support TextOnPath for SVGs at the moment. While they are picking up this issue, this script fixes TextOnPath when opening SVGs.

GroupsToLayer

When importing SVG's in Adobe Illustrator, it currently creates a group for each node. This script converts all top level groups to layers.

How to install a script:

Copy to the script to your machine, if you put it in the default folder (see below), Adobe Illustrator automatically shows them in the script-menu.

Windows:

C:\Program Files\Adobe\Adobe Illustrator CC 2019\Presets\en_US\Scripts

Mac:

Applications/Adobe Illustrator CC/Presets/en_GB/Scripts

The file path may differ depending on your version of Illustrator (could be CS6 instead of CC, for example), and also your language (could be ja_JP instead of en_GB, for example).