h2non / bimg

Go package for fast high-level image processing powered by libvips C library
https://pkg.go.dev/github.com/h2non/bimg?tab=doc
MIT License
2.73k stars 340 forks source link

Support concatenation of two images: vips_join() #433

Open spatecon opened 2 years ago

spatecon commented 2 years ago

A vips_join operation in the library allows concatenating two images one by another. It's widely used in document processing backends.

Docs

https://www.libvips.org/API/current/libvips-conversion.html#vips-join

Signature

As basic example:

func VipsJoin(image1 *C.VipsImage, image2 *C.VipsImage, d Direction, ...opts JoinOpt) (*C.VipsImage, error);

Example

gopher copy