Gotrace
[DEPRECATED] Pure Go implementation of Potrace vectorization library
Install / Use
/learn @dennwc/GotraceREADME
GoTrace
WARNING: This library is deprecated in favor of gotranspile/gotrace. It will not receive any updates.
Pure Go implementation of Potrace vectorization library. Supports simple SVG output generation.
Also includes cgo bindings for the original Potrace library.
Original image

Vectorized image

Installation
go get github.com/dennwc/gotrace
Usage
Process image with an alpha channel, generate SVG:
bm := gotrace.NewBitmapFromImage(img, nil)
paths, _ := gotrace.Trace(bm, nil)
gotrace.WriteSvg(file, img.Bounds(), paths, "")
Custom threshold function:
bm := gotrace.NewBitmapFromImage(img, func(x, y int, c color.Color) bool {
r, g, b, _ := c.RGBA()
return r + g + b > 128
})
paths, _ := gotrace.Trace(bm, nil)
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
343.3kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
