-
-
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
How to resize animated webp/gif? #2434
Comments
Hi, if you're resizing .resize({
- width: 200,
+ width: 200 * n,
height: 200,
}) |
I've tried that, but the animation changed completely. The result is the first page moving from down to top. |
Sorry, I got width and height the wrong way round in the diff, it should be: .resize({
width: 200,
- height: 200,
+ height: 200 * n,
}) |
Yeah, I've noticed that but the result is the same. |
You're probably seeing the effects of rounding "errors" at the top and bottom of each page/frame, which is pretty much why #2275 exists as a future possible enhancement. Are you able to provide a sample input file? You'll probably only get any success when resizing to exactly 1/2 or 1/4 etc. of the original dimensions as things stand. |
I've noticed that if the new size is below 50% the glitch appears. Above 50% the image is resized correctly. The Image is here |
Also, for some reason resized images are heavier than the original.
Resized:
|
Please subscribe to #2275 for updates. |
Ok, thank you very much @lovell. |
is the problem solved? |
Hi guys, I'm trying to resize an animated webp but no success.
I saw today that some new API calls are being developed, but I thought that the animated resizing functionality already works in some way.
A little sample code:
My objective is to resize and convert animated images back and forth using webp and gif extensions to accomplish a more cheaper bandwidth cost for my current project.
Thank you in advance for your time.
The text was updated successfully, but these errors were encountered: