generateSVG
generateSVG copied to clipboard
convert all images,such as png to svg,font to svg path,svg to jpg,svg to png,svg to eps,svg to pdf
nodeService for gRPC
you can also use HTTP interface , just see http version
install
2 software required , you can easily install it on macOS (you need install homebrew
first)
imagemagick (macOS brew install imagemagick)
potrace (macOS brew install potrace)
cd /this/project/path
npm install svgexport -g
npm install
//run server
node server/nodeservice_server.js
//run client
node client/font2SvgPath.js
node client/png2svg.js
node client/svg2Images.js
demo
使用golang进行远程调用此服务 首先生成nodeservice.pb.go文件
protoc --go_out=plugins=grpc:. nodeservice.proto
//然后将生成的文件放到 $GOPATH/src/github.com/zmisgod/test 文件夹中(没有请新建))
node server/nodeservice_server.js
go run main.go