cute-svg
v1.2.1
Published
Generate cute SVG traces based on images
Downloads
2
Readme
📸 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
To this:
36kb