Issue 480 in webp: how can the frames not stack together when use webpmux to generate animate webp files

132 views
Skip to first unread message

kaqiin… via monorail

unread,
Sep 10, 2020, 7:07:45 AM9/10/20
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 480 by kaqiin...@gmail.com: how can the frames not stack together when use webpmux to generate animate webp files
https://bugs.chromium.org/p/webp/issues/detail?id=480

What steps will reproduce the problem?
1. frames stack together when background is transparent
2.
3.

What is the expected output? What do you see instead?
when next frame show the last frame disappear

What version of the product are you using? On what operating system?
newest one

Please provide any additional information below.

i tried add all the +di[+xi+yi[+mi[bi]]] settings but none work, please help

thank you very much

Attachments:
expected.webp 308 KB
realget.webp 10.7 KB
bug.png 184 KB

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

ygu… via monorail

unread,
Sep 10, 2020, 8:54:20 AM9/10/20
to webp-d...@webmproject.org

Comment #1 on issue 480 by ygu...@google.com: how can the frames not stack together when use webpmux to generate animate webp files
https://bugs.chromium.org/p/webp/issues/detail?id=480#c1

I usedlibwebp/anim_dump to extract the frames of your animation as PNG images, then libwebp/cwebp -lossless to encode them as WebP.
Using these I called the following to produce the attached animation:
libwebp/webpmux -frame frame0.webp +100+0+0+0-b -frame frame1.webp +100+0+0+0-b -o out.webp
Basically any combination of +0/1+b/-b seemed to produce your expected result except +0+b.

You can also take a look at libwebp/img2webp that directly encodes several PNG frames into a single WebP animation.

Attachments:
out.webp 113 KB

ygu… via monorail

unread,
Sep 10, 2020, 8:55:49 AM9/10/20
to webp-d...@webmproject.org

Comment #2 on issue 480 by ygu...@google.com: how can the frames not stack together when use webpmux to generate animate webp files
https://bugs.chromium.org/p/webp/issues/detail?id=480#c2

(No comment was entered for this change.)

jz… via monorail

unread,
Oct 20, 2020, 8:30:38 PM10/20/20
to webp-d...@webmproject.org

Comment #4 on issue 480 by jz...@google.com: how can the frames not stack together when use webpmux to generate animate webp files
https://bugs.chromium.org/p/webp/issues/detail?id=480#c4

> 1、how can i make animation to speed by Bézier curve

If I understand correctly you want to modify the duration of each frame based on a particular function. The first parameter to webpmux is the duration for the frame [1], so you can plug in whatever values you end up calculating.

2、can i directly use buffer or base64 to make animate webp file instead convert then to webp first

The AnimEncoderAPI can be used to encode buffers directly.

[1] https://developers.google.com/speed/webp/docs/webpmux#frame_options_-frame
[2] https://developers.google.com/speed/webp/docs/container-api#webpanimencoder_api

jz… via monorail

unread,
Dec 23, 2020, 9:54:09 PM12/23/20
to webp-d...@webmproject.org
Updates:
Status: Done

Comment #5 on issue 480 by jz...@google.com: how can the frames not stack together when use webpmux to generate animate webp files
https://bugs.chromium.org/p/webp/issues/detail?id=480#c5

Closing this bug due to lack of activity. If you're still running into issues feel free to reopen the bug or file a new issue.
Reply all
Reply to author
Forward
0 new messages