zacbarton / node-autotrace Goto Github PK
View Code? Open in Web Editor NEWA simple interface for converting raster images into vector graphics using AutoTrace.
License: MIT License
A simple interface for converting raster images into vector graphics using AutoTrace.
License: MIT License
Hi,
I have simple project with index.js like this:
var autotrace = require('autotrace')
var input = 'test1.png'
var output = 'out.svg'
autotrace(input, {outputFile: output}, function(e, b){
if(!err) console.log('done')
})
When I run node index.js
, I receive:
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn autotrace ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Using Node v6.9.1, yarn 0.18.1, Windows 10 Pro x64, runnig just from cmd.
Do you have any idea how to resolve that?
I getting error can't find module autotrace.
And it's really a poor documentation.
spawn autotrace ENOENT error
autotrace('./lc.png', {
outputFile: './a.dxf'
}, function(err, buffer) {
console.log('err',err)
console.log('buffer',buffer)
if (!err) console.log('done');
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.