Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Deploying '/Users/**/Projects/**/**'
to namespace 'fn-**'
on host 'https://**.doserverless.co'
Submitted function 'sample/hello' for remote building and deployment in runtime go:default (id: 6385b32b4639433585b32b4639b3359a)
Transcript of remote build session for action 'sample/hello':
Output of failed build in %s
/tmp/slices/builds/fn-**/sample_hello/2024-01-29T13-22-28.710Z/packages/sample/hello
downloading modules
building
# pkg-config --cflags -- vips
Package vips was not found in the pkg-config search path.
Perhaps you should add the directory containing `vips.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vips' found
pkg-config: exit status 1
with the following code
package main
import (
"fmt"
"io"
"net/http"
"os"
"github.com/davidbyttow/govips/v2/vips"
)
func checkError(err error) {
if err != nil {
fmt.Println("error:", err)
os.Exit(1)
}
}
func Main() {
vips.Startup(nil)
_// fetch image_
url := "https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg"
response, _ := http.Get(url)
image1bytes, err := io.ReadAll(response.Body)
checkError(err)
image1, err := vips.NewThumbnailFromBuffer(image1bytes, 200, 200, vips.InterestingCentre)
checkError(err)
_// Rotate the picture upright and reset EXIF orientation tag_
err = image1.AutoRotate()
checkError(err)
ep := vips.NewDefaultJPEGExportParams()
image1bytes, _, err = image1.Export(ep)
checkError(err)
err = os.WriteFile("output.jpg", image1bytes, 0644)
checkError(err)
vips.Shutdown()
}
would love some insight on what to do. I tried finding this in the docs somewhere but I had no luck.
Thanks!
Roger Henman
Roger Henman
Paul Adeyenuwo
wtrenker
Popescu Crina-Mariana
Setor Blagogee
daniel.carpenter01
Sai Aung Kaung Myat
alenn
Jake W
afdaldev