ilibgo is a pure-Go library for reading, creating, manipulating, and saving images, with a focus on drawing primitives and text rendering. It’s a Go port of the original C Ilib, keeping API compatibility while adapting to idiomatic Go.
Key Features
- Reads any format Go’s standard
imagepackage supports; writes PNG, JPEG, GIF, BMP, TIFF, and PPM - Drawing primitives: points, lines, rectangles, arcs, circles, ellipses, polygons, Bezier and Catmull-Rom curves, and flood fill
- Anti-aliasing, alpha compositing, and color quantization
- Embedded X11 BDF bitmap fonts plus scalable, anti-aliased TrueType/OpenType text
- No required third-party dependencies beyond
golang.org/x/image
Quick start: go get github.com/craigk5n/ilibgo. Licensed under the GNU LGPL v2.1 (bundled BDF fonts carry permissive Adobe/X.Org notices).