GNOME Bugzilla – Bug 773449
exported animated webp images play layers in reverse
Last modified: 2016-10-25 15:23:12 UTC
To reproduce: 1) Open any animated image (webp/gif/etc) 2) The opened image must have multiple layers (as multiple frames of animation) 3) Export the file as webp and choose the animation option Results: The steps in the animation play from the top layer to the bottom layer (background) which is the reverse of what it should be. Expected Results: If you export a GIF in step #3 above, the animated GIF will play from bottom layer to top layer (correct order). More information: I am using git 2.9.5 (commit bafe441) from the Otto PPA running Ubuntu 16.04.1
RE: https://bugzilla.gnome.org/show_bug.cgi?id=769651
i can reproduce with fresh TOT. Having a look at a potential fix.
Created attachment 338402 [details] [review] fix for webp animation order
the attached patch restores the proper saving order. Please have a look!
Thank you @Pascal ... your promptness in dealing with this is incredible! Unfortunately, I don't know how to (and am generally not interested in learning how to) build GIMP from source. So, I won't be able to test this until 2.9.6 hits the Otto PPA (assuming your patch lands before that is released).
Created attachment 338412 [details] [review] fix for animation order during webp saving this patch uses gint32 instead of 'int'.
If it obsoletes the previous patch, it would be nice if you could mark that one as such.
Comment on attachment 338402 [details] [review] fix for webp animation order is actually obsolete
#7: done, i didn't know one could mark a patch obsolete.
Review of attachment 338412 [details] [review]: Looks good. Committed as: commit 26a6a39b6b4de6083f82c3f5c5786ea14bbabc93 Author: Pascal Massimino <pascal.massimino@gmail.com> Date: Tue Oct 25 15:12:07 2016 +0200 fix animation layer order when saving as webp plug-ins/file-webp/file-webp-save.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Thanks for the bug report and the patch! :-)