mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
No description
| fixtures | ||
| .editorconfig | ||
| .gitignore | ||
| .travis.yml | ||
| debug.go | ||
| image.go | ||
| image_test.go | ||
| LICENSE | ||
| options.go | ||
| README.md | ||
| resize.go | ||
| resize_test.go | ||
| type.go | ||
| type_test.go | ||
| version.go | ||
| vips.go | ||
| vips.h | ||
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