Skip to content

datismoa/png2svg-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To transform one file, use src/one.js:

node src/one.js transform --filePath="./input/example.png" --outputDir="./output"

To transform a bunch of files, use src/many.js:

node src/many.js run --inputDir="./input" --outputDir="./output"

Along with SVGs, it'll also create parsing-log.json in your home directory with all failed files if some errors occur. Thus, you can easily filter them and retry transformation.

Filter files

If a transformation process is interrupted or some errors occured, you may want to retry transformation only with files are not transformed yet. To do this, use helper src/filter.js.

Open the helper, define INPUT_PATH as your input path and OUTPUT_PATH as your output path. Then run:

node src/filter.js

It removes from INPUT_PATH those files which also exist in OUTPUT_PATH.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published