Initialize and shutdown govips
masterEvery govips application must explicitly start and shutdown the library to manage the underlying libvips lifecycle. Use vips.Startup(nil) at the beginning of your application and defer vips.Shutdown() to ensure resources are cleaned up.
package main
import (
"fmt"
"os"
"github.com/davidbyttow/govips/v2/vips"
)
func main() {
vips.Startup(nil)
defer vips.Shutdown()
// ... example code goes here
}