Skip to content

cronfy/svg-padding-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

svg-padding-remover

Removes padding from svg files. Requires PhantomJS.

Demo

    before.svg         after.svg
+----------------+
|                |     ._______.
|    \  O  /     |     |\  O  /|
|     `-|-'      | ==> | `-|-' |
|      <->       |     |  <->  |
|                |     `▔▔▔▔▔▔▔` 
+----------------+

Or see these examples: before.svg, after.svg.

Installation

PhantomJS is required:

npm install -g phantomjs-prebuilt

Then just use it to run svg-padding-remover.js.

Usage

phantomjs svg-padding-remover.js path/to/image.svg > new.svg

Thanks

Thanks to all who participated in discussion.

About

Removes padding from svg files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published