Closed felixgao closed 1 year ago
same question how do you fix it? thanks
services/thumb/image.go:23:7: undefined: vips.Startup
services/thumb/image.go:24:13: undefined: vips.Shutdown
services/thumb/image.go:25:22: undefined: vips.NewImageFromFile
services/thumb/image.go:30:40: undefined: vips.InterestingCentre
services/thumb/image.go:32:19: undefined: vips.DirectionVertical
Hey @zxln007
this looks like it's not an issue with govips. It looks like an issue with your code or the environment.
I am writing some code to convert a PDF to PNG and in my function I have the following code but the compiler is telling me that
undefined: vips.WithPDFOptions
. I looked at the source code it seems the WithPDFOptions defined in image.go is rolled back a few years ago. Is there any new ways of doing this in govips?I have the following go.mod
In my pdf2png.go
Thanks,
Felix