Adrian Shum

Results 58 comments of Adrian Shum

I also wonder why. If I need such conversion I could have call the function myself. Since this is advertised as a libvips binding, it should be as close to...

For this particular purpose without changing the library, you may try inject HTTP request header using `metadata.NewOutgoingContext`, through a HTTP middleware: ```go func authForwardHandler(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter,...

Sound interesting. A PR would be good and I am happy to review.

What kind of image types are you processing with imagor? Apart from JPEG? Looking at `[signal SIGSEGV: segmentation violation code=0x1 addr=0x125 pc=0x7f749a91b3a0]`, a speculation is some operations for some image...

Would you try the docker image of master branch, `ghcr.io/cshum/imagor:master`? I have pushed some tweaks lets see if it gives any difference. Please clear docker cache if you have pulled...

``` {"log":"github.com/cshum/imagor/vips._Cfunc_thumbnail_source_with_option(0x7f7434207270, 0xc0013bc010, 0x1f4, 0x1388, 0x0, 0x2, 0x7f742d60d780)\n","stream":"stderr","time":"2022-09-07T10:26:21.694102171Z"} {"log":"\u0009_cgo_gotypes.go:1402 +0x4c fp=0xc000ff4f40 sp=0xc000ff4f18 pc=0xcfea0c\n","stream":"stderr","time":"2022-09-07T10:26:21.694106296Z"} {"log":"github.com/cshum/imagor/vips.vipsThumbnailFromSource.func2(0xc00184e020?, 0x9?, 0x1f4, 0x1388, 0x0, 0x2, 0x0?)\n","stream":"stderr","time":"2022-09-07T10:26:21.694108351Z"} {"log":"\u0009/go/src/github.com/cshum/imagor/vips/vips.go:99 +0xbc fp=0xc000ff4f98 sp=0xc000ff4f40 pc=0xd06e3c\n","stream":"stderr","time":"2022-09-07T10:26:21.694110387Z"} {"log":"github.com/cshum/imagor/vips.vipsThumbnailFromSource(0x7f7496d85d28?, 0x8?, 0xc001d1e400?, 0xc0013bc008?, 0x0?,...

Has this `vips._Cfunc_clear_image` been showing previously, or is it a new one?

Another speculation, perhaps in a high memory pressure environment the Go garbage collector kicks in prematurely sometimes. Made some fixes based on that assumption, would you test the docker image?...

Can you share your docker environment variables (except secret key, access key etc)? What is the docker memory/cpu limit it is run on? By now it is probably not a...

I tried the URLs from the repo and it seems to be doing normal in my local machine. If there is only 1 instance, there is always a finite number...