Skip to content

convert all images,such as png to svg,font to svg path,svg to jpg,svg to png,svg to eps,svg to pdf

Notifications You must be signed in to change notification settings

zmisgod/generateSVG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

contact

@zmisgod

zmis.me新博客

About

convert all images,such as png to svg,font to svg path,svg to jpg,svg to png,svg to eps,svg to pdf

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published