cute-svg

1.2.1 • Public • Published

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

/cute-svg/

    Package Sidebar

    Install

    npm i cute-svg

    Weekly Downloads

    1

    Version

    1.2.1

    License

    Apache-2.0

    Unpacked Size

    387 kB

    Total Files

    7

    Last publish

    Collaborators

    • rametta