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

807 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

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