项目作者: chrisjmendez

项目描述 :
NodeJS convert Bitmap (BMP) files to Vector (EPS)
高级语言: JavaScript
项目地址: git://github.com/chrisjmendez/nodejs-bmp-to-eps.git
创建时间: 2015-02-25T20:37:28Z
项目社区:https://github.com/chrisjmendez/nodejs-bmp-to-eps

开源协议:Apache License 2.0

下载


NodeJS BMP to Vector EPS (for Mac OSX)
-

Problem

I needed to turn a variety of different composer images into vector graphics. The images needed to be of any shape and style and ultimately I would need to manipulate them through Adobe Illustrator.

Solution

Use Mac OSX homebrew to install potrace and convert a BMP image into EPS format.

Steps

Step 1: Install Homebrew on Mac OSX

  1. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2: Doublecheck brew

  1. brew doctor
  2. brew update

Step 4: Use brew command to install potrace

  1. brew install potrace

Step 5: Install NodeJS

Step 6: Install node packages

  1. sudo npm install

Step 6: Run Node app

  1. node app.js

Author

@chrismendezinla