h2non / bimg

Go package for fast high-level image processing powered by libvips C library
https://pkg.go.dev/github.com/h2non/bimg?tab=doc
MIT License
2.65k stars 337 forks source link

convert gif to webp #451

Open januwA opened 1 year ago

januwA commented 1 year ago

Lost animation after converting gif to webp using bimg

How to implement this command in bimg

vips copy f.gif[n=-1] f2.webp
o := bimg.Options{
        Type:     bimg.WEBP,
}
bimg.NewImage(buf).Process(o)

I did not find n=-1 related configuration options in bimg.Options