bimg/README.md
2015-04-03 01:43:43 +02:00

812 B

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

Only supports 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