Open ohtaeg opened 2 years ago
The following error was encountered during the gif resizing process. Unsupported image output type
Unsupported image output type
code sample
import ( "fmt" "github.com/h2non/bimg" "log" ) func foo(width int, height int) { buffer, err := bimg.Read("img/test.gif") if err != nil { fmt.Fprintln(os.Stderr, err) return } newImage := bimg.NewImage(buffer) bimgOpt := bimg.Options{ Width: width, Height: height, Crop: true, Gravity: bimg.GravityCentre, } process, err := newImage.Process(bimgOpt) if err != nil { fmt.Println("1") log.Fatalln(err.Error()) // error occured return } err = bimg.Write("output/test1.gif", process) if err != nil { fmt.Println("2") log.Fatalln(err.Error()) } }
I wonder if there is any plan to update the function.
thanks.
Hello, me too. Is that all right now?
Unfortunately, it's the same.
I think the reason is the underlying libvips that you use, not bimg. It needs to be compiled with GIF support. Which distribution/OS are you using?
The following error was encountered during the gif resizing process.
Unsupported image output type
code sample
I wonder if there is any plan to update the function.
thanks.