An open API service indexing awesome lists of open source software.

https://github.com/dillonstreator/imagecat

Concatenate any number of images into a single image on x or y axis with optional alignment centering
https://github.com/dillonstreator/imagecat

concat concatenation golang images

Last synced: 7 months ago
JSON representation

Concatenate any number of images into a single image on x or y axis with optional alignment centering

Awesome Lists containing this project

README

          

imagecat

Concatenate images into a single image on x or y axis with optional alignment centering



GoDoc badge


GoDoc badge


GoReport badge


GoReport badge

## Installation

```sh
go get github.com/dillonstreator/imagecat/v3
```

## Usage

```go
import (
"image"

"github.com/dillonstreator/imagecat/v3"
)

func main () {

images := []image.Image{
// ... images
}

// concat on x-axis with no alignment
img, err := imagecat.Concat(images)
if err != nil { /* handle error */ }

// concat on y-axis with center alignment
img, err = imagecat.Concat(images, imagecat.WithAxis(imagecat.AxisY), imagecat.WithAlignment(imagecat.AlignmentCenter))
if err != nil { /* handle error */ }

}
```

## Examples


Input images










Start Alignment
Center Alignment
End Alignment


X-axis





Y-axis