1.2.1 • Published 6 years ago

cute-svg v1.2.1

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
6 years ago

npm PRs Welcome Open Source Love License

📸 Cute SVG

Image optimizer by converting to SVG. Demo

Install

yarn add cute-svg

Usage

const cute = require('cute-svg')
const fs = require('fs')

const inputFile = __dirname + '/sample.jpg'
const outputFile = __dirname + '/output.json'

cute({ filePath: inputFile })
  .then(svg => fs.writeFileSync(outputFile, svg))
  .catch(e => console.log(e))

// OUTPUT
// { tracedSvg: String, aspectRatio: Number }

Example

From this:

133kb

notcute

To this:

36kb

cute

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago