images-to-svg
v1.0.0
Published
CLI tool to convert PNG/JPG/JPEG bitmap images into optimized SVG.
Maintainers
Readme
images-to-svg
CLI tool to convert bitmap images (.png, .jpg, .jpeg) to vector SVG files through pipeline:
sharp(pre-processing: grayscale, normalize, threshold)potrace(tracing image buffer to raw SVG)svgo(optimizing SVG results)
Installation
npm installUsage
Convert single file:
npx images-to-svg convert ./assets/logo.pngConvert all .png/.jpg/.jpeg files in one folder:
npx images-to-svg convert ./assetsOutput .svg files will be saved in the same directory as the source files.
