Skip to content

convert color image to vector graphics, based heavily on potrace and Imagemagick

Notifications You must be signed in to change notification settings

arnehilmann/coltrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

convert color image to vector graphics, based heavily on potrace and Imagemagick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages