-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
I cannot redirect a webp animated of different height and width #2737
Labels
Comments
Please can you provide a sample input image to help explain your question. |
Thanks, this doesn't have quite the same dimensions as the original question, but here's how you might resize this to 400x372: const { pages } = await sharp("archive 498x463.webp").metadata();
await sharp("archive 498x463.webp", { animated: true })
.resize({ width: 400, height: pages * 372 })
.webp({ pageHeight: 372 })
.toFile("out.webp") Please subscribe to #2275 for a future possible enhancement that relates to this. |
Yes above was a small example, thanks this solved the problem, I'll sign the enhancement congratulations on the library |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"archive webp: dimension 400x500"
output: dimension 400x2100...
I can only get a satisfactory result with a file of equal dimensions, is it possible to get around this?
The text was updated successfully, but these errors were encountered: