Go package for generating "coloring book" style images.
Documentation is incomplete at this time. Until then take a look at cmd/outline/main.go for basic usage guidelines.
For background, consult the Coloring Books Pages For the SFO Museum Aviation Collection blog post.
$> ./bin/outline -h
-contour-format string
The format for the final image contour. Valid options are: png, svg. (default "png")
-contour-iteration int
The number of iterations to perform generating an image contour. (default 8)
-contour-scale float
The scale factor of the final image contour. (default 1)
-infile string
The path to the image you want to generate an outline for.
-outfile string
The path to the final image that has been outlined.
-path-batik string
The path to the Java Batik SVG raterizer JAR file. (default "/usr/local/src/batik-1.17/batik-rasterizer-1.17.jar")
-use-batik
Use the Java Batik SVG raterizer. (default true)
-vtracer-precision int
Number of significant bits (color precision) to use in an RGB channel. (default 6)
-vtracer-speckle int
Discard patches smaller than X px in size (default 8)
For example:
$> ./bin/outline -infile fixtures/1762830785-scarf.jpg -outfile fixtures/1762830785-scarf-o.png
Which would read this file:
And produce this file: