~/Golang Libraries for Graphics and Image Manipulation
Jan 17, 2020
Golang supports graphics and image manipulation using built-in and external packages. For most use cases, the standard image package is sufficient to decode, process, and encode JPEG, PNG, and GIF formats.
To draw shapes or images:
|
|
For advanced operations such as cropping, resizing or filtering, the github.com/disintegration/imaging library is popular. Resize an image example:
Other useful libraries:
- Vector graphics with github.com/fogleman/gg
- Drawing charts with github.com/wcharczuk/go-chart
Refer to the official tour or documentation for more examples.