mirror of https://mirror.trustie.net/root/bimg.git
d471c49348 | ||
---|---|---|
fixtures | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
debug.go | ||
image.go | ||
options.go | ||
resize.go | ||
resize_test.go | ||
type.go | ||
version.go | ||
vips.go | ||
vips.h |
README.md
bimg
Go library for blazing fast image processing based on libvips using C bindings
Work in progress
Installation
go get gopkg.in/h2non/bimg.v0
Requires Go 1.3+
API
import (
"fmt"
"os"
"gopkg.in/h2non/bimg"
)
options := bimg.Options{
Width: 800,
Height: 600,
Crop: true,
Quality: 95,
}
newImage, err := bimg.Resize(image, options)
if err != nil {
fmt.Fprintln(os.Stderr, err)
}
License
MIT - Tomas Aparicio