bimg
bimg copied to clipboard
class "jpegload_buffer" not found
Hi, I installed libvips from the source. I can normally type command vips in the terminal.
Also, i installed libjpeg and libpng (i want processing only png and jpeg files) and then I executed ./configure in the libvips's source folder
In golang i want a simple decrease in quality but i got an error "VipsOperation: class "jpegload_buffer" not found"
I literally tried to copy one of the examples from github and event this return the same error
` buffer, err := bimg.Read("wallpaperflare.com_wallpaper.jpg") if err != nil { fmt.Fprintln(os.Stderr, err) }
newImage, err := bimg.NewImage(buffer).Resize(800, 600)
if err != nil {
fmt.Fprintln(os.Stderr, err)
}
size, err := bimg.NewImage(newImage).Size()
if size.Width == 800 && size.Height == 600 {
fmt.Println("The image size is valid")
}`