Issue 517 in webp: Exporting to animated WebP doesn't preserve the channels

22 views
Skip to first unread message

marti… via monorail

unread,
Apr 15, 2021, 12:23:59 PM4/15/21
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 517 by marti...@gmail.com: Exporting to animated WebP doesn't preserve the channels
https://bugs.chromium.org/p/webp/issues/detail?id=517

What steps will reproduce the problem?
I'm doing third party API ingegration. Running the example from the documentation page.
```
WebPAnimEncoder* enc = WebPAnimEncoderNew(width, height, &enc_options);
while(<there are more frames>) {
WebPConfig config;
WebPConfigInit(&config);
WebPAnimEncoderAdd(enc, frame, timestamp_ms, &config);
}
WebPAnimEncoderAdd(enc, NULL, timestamp_ms, NULL);
WebPAnimEncoderAssemble(enc, webp_data);
WebPAnimEncoderDelete(enc);

```

What is the expected output? What do you see instead?
Issue is related to exporting animated image with a wrong number of channels.
When I export animated webp image from 5 images, whose numbers of channels are equal to 3, animated webp image contains 5 images with channels {3, 4,4,4,4}(Means it preserves right number of channels only for the first frame)


What version of the product are you using? On what operating system?
I'm on Linux Ubuntu 20.04
I'm using the current webp master.

--
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

jz… via monorail

unread,
Apr 23, 2021, 4:23:32 PM4/23/21
to webp-d...@webmproject.org

Comment #1 on issue 517 by jz...@google.com: Exporting to animated WebP doesn't preserve the channels
https://bugs.chromium.org/p/webp/issues/detail?id=517#c1

Thanks for the report.

How are you determining the number of channels in the animated webp? Does the image render incorrectly?

How did you import the data into the WebPPicture (frame)? If there was non-trivial alpha data then that may explain the difference, though it sounds like your source is expected to have three channels only. If you have some sample frames or a more complete code snippet it may help diagnose the issue.

jz… via monorail

unread,
Jul 3, 2021, 2:15:06 PM7/3/21
to webp-d...@webmproject.org
Updates:
Labels: Needs-Feedback

Comment #2 on issue 517 by jz...@google.com: Exporting to animated WebP doesn't preserve the channels
https://bugs.chromium.org/p/webp/issues/detail?id=517#c2

Any update on this one? Are you able to provide the source images, a sample encode and the code used to produce it so we can take a look?

jz… via monorail

unread,
Dec 13, 2021, 8:03:38 PM12/13/21
to webp-d...@webmproject.org
Updates:
Status: Invalid

Comment #3 on issue 517 by jz...@google.com: Exporting to animated WebP doesn't preserve the channels
https://bugs.chromium.org/p/webp/issues/detail?id=517#c3

Closing this due to lack of activity. If you're still seeing an issue feel free to reopen the bug with the details requested in the earlier comments.
Reply all
Reply to author
Forward
0 new messages