No description
Find a file
2015-04-02 15:04:58 +02:00
fixtures feat(#3, #5): support image operations 2015-03-30 02:41:16 +02:00
.editorconfig feat(#1): initial implementation 2015-03-29 22:55:04 +02:00
.gitignore feat(#1): initial implementation 2015-03-29 22:55:04 +02:00
.travis.yml feat(#1): initial implementation 2015-03-29 22:55:04 +02:00
debug.go feat(#1): initial implementation 2015-03-29 22:55:04 +02:00
image.go feat(#1): initial implementation 2015-03-29 22:55:04 +02:00
LICENSE feat(#1): initial implementation 2015-03-29 22:55:04 +02:00
options.go feat(#3, #5): support image operations 2015-03-30 02:41:16 +02:00
README.md feat(docs): add badge 2015-04-02 15:04:58 +02:00
resize.go feat(#3, #5): support image operations 2015-03-30 02:41:16 +02:00
resize_test.go refactor(type) 2015-03-30 02:49:19 +02:00
type.go refactor(type) 2015-03-30 02:49:19 +02:00
version.go feat: add version file 2015-03-26 19:21:04 +01:00
vips.go refactor(type) 2015-03-30 02:49:19 +02:00
vips.h refactor: vips.h 2015-04-02 15:03:06 +02:00

bimg Build Status GitHub release GoDoc

Go library for blazing fast image processing based on libvips using C bindings

Work in progress

Installation

go get gopkg.in/h2non/bimg.v0

Or get the lastest development version

go get github.com/h2non/bimg

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