## gosexy/canvas

`gosexy/canvas` is an image processing library for Go that uses ImageMagick's
MagickWand as backend.

[![Build Status](https://travis-ci.org/gosexy/canvas.png)](https://travis-ci.org/gosexy/canvas)


## Requeriments

ImageMagick's MagickWand development files are required.

```sh
# OSX
$ brew install imagemagick

# Arch Linux
$ sudo pacman -S extra/imagemagick

# Debian
$ sudo aptitude install libmagickwand-dev
```

## Installation

Just pull `gosexy/canvas` from github using `go get`:

```sh
$ go get menteslibres.net/gosexy/canvas
```

## Usage

```go
package main

import "menteslibres.net/gosexy/canvas"

func main() {
  img := canvas.New()

  // Opening some image from disk.
  err := img.Open("examples/input/example.png")

  if err == nil {

    // Photo auto orientation based on EXIF tags.
    img.AutoOrientate()

    // Creating a squared thumbnail
    img.Thumbnail(100, 100)

    // Saving the thumbnail to disk.
    img.Write("examples/output/example-thumbnail.png")

  }
}
```

## Documentation

See the [online docs](http://godoc.org/menteslibres.net/gosexy/canvas).

## gosexy/canvas

`gosexy/canvas` is an image processing library for Go that uses ImageMagick's
MagickWand as backend.

[![Build Status](https://travis-ci.org/gosexy/canvas.png)](https://travis-ci.org/gosexy/canvas)


## Requeriments

ImageMagick's MagickWand development files are required.

```sh
# OSX
$ brew install imagemagick

# Arch Linux
$ sudo pacman -S extra/imagemagick

# Debian
$ sudo aptitude install libmagickwand-dev
```

## Installation

Just pull `gosexy/canvas` from github using `go get`:

```sh
$ go get github.com/gosexy/canvas
```

## Usage

```go
package main

import "github.com/gosexy/canvas"

func main() {
  img := canvas.New()

  // Opening some image from disk.
  err := img.Open("examples/input/example.png")

  if err == nil {

    // Photo auto orientation based on EXIF tags.
    img.AutoOrientate()

    // Creating a squared thumbnail
    img.Thumbnail(100, 100)

    // Saving the thumbnail to disk.
    img.Write("examples/output/example-thumbnail.png")

  }
}
```

## Documentation

See the [online docs](http://godoc.org/github.com/gosexy/canvas).

Update project's URLs for GitHub
Update project's URLs for GitHub
