bimg
bimg copied to clipboard
Go package for fast high-level image processing powered by libvips C library
How to set NoAutoRotate to false when calling watermark?
I am processing images in some steps and I don't return the image at every step: e.g. ``` func ProcessMultiple(image *bimg.Image, options []*bimg.Options) (bimg.Image, error) { var locImage = image...
As explained in #201, exif autorot is applied _at the start_, but such meta data is missing after applying watermark. Before image: https://fars.ee/v4So >  After image: https://fars.ee/dm7d > ...
I tried to build a static binary using musl so it can be run in alphine: ``` CC=musl-gcc CGO_ENABLED=1 go build -a -ldflags '-linkmode external -extldflags "-static"' -o gowebserver main.go...
First, building with the [Dockerfile](https://github.com/h2non/bimg/blob/master/Dockerfile), which is supposed to support avif encoding, but I'm getting: ``` /vips/bin/vips copy smart-crop.jpg smart-crop.avif VipsForeignSave: "smart-crop.avif" is not a known file format ``` Then,...
I - pre-built `vips` locally - get the bimg source into `/go/src/github.com/h2non/bimg`, and under it, - do `go build -v .` and this is what I'm getting: ``` $ go...
Docker build problem unrelated with #425. Building with the [Dockerfile](https://github.com/h2non/bimg/blob/master/Dockerfile) and I'm getting `undefined: io.ReadAll`: ``` Making install in test . . . Making install in helpers . . ....
I can compile my program on my own mac, but i cannot build the docker image. How to use the lib in a docker image? 
- When trying to retrieve size of an image, size,_ := bimg.NewImage(img).Size() - In github.com/h2non/bimg/metadata.go, Metadata function tries to extract Software tag from image. Wherein an image had Software value...
``` /opt/homebrew/Cellar/go/1.20.3/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1 ld: warning: directory not found for option '-L/opt/homebrew/Cellar/vips/8.14.1_1/lib' ld: warning: directory not found for option '-L/opt/homebrew/Cellar/glib/2.74.6/lib' ld: library not found for -lvips...