Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does bimg support animated WebP resizing? #441

Open
rtio opened this issue Feb 10, 2023 · 0 comments
Open

Does bimg support animated WebP resizing? #441

rtio opened this issue Feb 10, 2023 · 0 comments

Comments

@rtio
Copy link

rtio commented Feb 10, 2023

I'm performing some tests right now and static WebP image resizing works well, but when I'm trying to resize an animated WebP image it returns a frozen image, when I look at the image size it has reduced drastically which indicates it is just one frame.

I didn't find any explicit information regarding this, sorry if this is a repeated question.

		bimg.VipsDebugInfo()
		opt := bimg.Options{Width: 212, Height: 320, Embed: true, Type: bimg.WEBP, Lossless: true}
		newImg, err := bimg.NewImage(inputData).Process(opt)
		if err != nil {
			fmt.Fprintln(os.Stderr, err)
		}
		bimg.Write("new.webp", newImg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant