Skip to content

A node.js app to take an image and render it as a line drawing

License

Notifications You must be signed in to change notification settings

allhandsactive/drawit

Repository files navigation

drawit

A node.js app to take an image and render it as a line drawing

macOS Install

From the terminal, do the following:

  1. Install homebrew: https://brew.sh/
  2. Install deps: brew install node potrace imagemagick
  3. Clone the repo: git clone git@github.com:allhandsactive/drawit.git and switch to the directory: cd drawit
  4. Install the node deps: npm install
  5. Install the python deps: pip3 install lxml
  6. Start the server: npm start
  7. Go to http://localhost:3000 to begin

TODO

  • Make things look a bit nicer
  • Images from a URL?
  • Generate gcode?
  • Pull in axidraw via a submodule
  • Allow hatch width to be configurable

Dependencies

  • imagemagick 7
  • potrace
  • Cartoon script for imagemagick (modified and distributed in bin)
  • Python 3
  • eggbot_hatch.py (and deps) included in bin
  • Python lxml (installed from pip, or as a system package)
  • Compile the gcode translator: cargo b --release

systemd unit

Symlink or copy drawit.service to /lib/systemd/system and then enable and start. Assumes installation in /srv/drawit and a drawit user.

About

A node.js app to take an image and render it as a line drawing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages