BMP libraries for Go
- x/image/bmp (
golang.org/x/image/bmp) is maintained by the Go team. It decodes uncompressed 1, 2, 4, 8, 24 and 32-bit BMP files and encodes 8, 24 and 32-bit. It doesn’t decode RLE-compressed or 16-bit files. - imaging opens and saves BMP (through x/image/bmp) along with PNG, JPEG, GIF and TIFF, and adds resize, crop and rotate.
The Go standard library has no BMP package; image/png, image/jpeg and image/gif are the only built-in codecs.
- imaging imaging is a Go package for resizing, cropping and converting images. How to open a BMP, resize it, convert BMP to PNG or JPEG and save BMP files in Go.
- x/image/bmp golang.org/x/image/bmp is the Go team's BMP decoder and encoder. How to read and write BMP in Go, get the size without decoding, convert BMP to PNG.