samwisekind / svg-compressor

Simple SVG compressor using SVGO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svg-compressor

A simple SVG compressor using SVGO and gulp-svgmin.

Installation

  1. Clone the repository
  2. Open a Terminal/Command prompt at the cloned folder, and run:
npm install

Usage

  1. Place uncompressed SVG files in an /uncompressed/ folder in the root
  2. Open a Terminal/Command prompt at the cloned folder, and run:
npm run compress

This will run the Gulp SVG compression task. Alternatively, you can run the Gulp task directly with:

gulp compress
  1. After the task has finished, two files for each uncompressed SVG file will be exported to the /compress/ folder:
    1. A compressed SVG file with no path merges (under the /normal/ folder)
    2. A compressed SVG file with merged paths (under the /merged/ folder)

About

Simple SVG compressor using SVGO


Languages

Language:JavaScript 100.0%