Concatenate images into a single image on x or y axis with optional alignment centering
go get github.com/dillonstreator/imagecat/v3
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 */ }
}