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
- Host: GitHub
- URL: https://github.com/dillonstreator/imagecat
- Owner: dillonstreator
- License: mit
- Created: 2022-03-27T19:49:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T13:30:39.000Z (over 2 years ago)
- Last Synced: 2025-05-22T02:11:40.901Z (8 months ago)
- Topics: concat, concatenation, golang, images
- Language: Go
- Homepage:
- Size: 486 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
imagecat
Concatenate images into a single image on x or y axis with optional alignment centering
## 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