https://github.com/arnehilmann/coltrace
convert color image to vector graphics, based heavily on potrace and Imagemagick
https://github.com/arnehilmann/coltrace
Last synced: 3 months ago
JSON representation
convert color image to vector graphics, based heavily on potrace and Imagemagick
- Host: GitHub
- URL: https://github.com/arnehilmann/coltrace
- Owner: arnehilmann
- Created: 2018-11-02T10:34:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-06T14:05:08.000Z (over 6 years ago)
- Last Synced: 2025-03-21T01:23:45.556Z (3 months ago)
- Language: Shell
- Size: 313 KB
- Stars: 22
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# coltrace
col(or)trace: convert color image to vector graphics (based heavily on potrace and Imagemagick)
sharp edges when zooming, transparent background, smaller size (often)
## examples/logo
![]()
## tl;dr
```
$ git clone https://github.com/arnehilmann/coltrace.git# on MacOS
$ brew install gnu-sed potrace imagemagick || brew upgrade gnu-sed potrace imagemagick$ cd coltrace
$ bin/coltrace examples/logo.jpeg
$ open out/logo/index.html
```## usage
```
coltrace SOURCE [POSTERIZE [WIDTH]]SOURCE input image; assumption: white background, good contrast, no noise
POSTERIZE number of colors per channel (default 3)
2: 8 unique colors, 3: 27 colors, 4: 64 colors
WIDTH width of svg (default 24cm)env parameters:
RENDER_COLOR should color svg be rendered (default true)
DEBUG debug output (default true)
```