透明的动画WebP不清除框架 [英] Transparent animated WebP not clearing frames

查看:209
本文介绍了透明的动画WebP不清除框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要制作一系列精灵,以制作透明的循环动画。
这就是我得到的:

I have a series of sprites I'm trying to make into a transparent looping animation. Here's what I'm getting:

如您所见,框架在转弯后并没有清除

我正在使用类似于以下命令的webpmux命令:

I was using a command for webpmux similar to this:

./webpmux -frame mrdipsp/00.webp +250+[[1[-b]]] -frame mrdipsp/01.webp +250+[[1[-b]]] -frame mrdipsp/02.webp +250+[[1[-b]]] -frame mrdipsp/03.webp +250+[[1[-b]]] -frame mrdipsp/04.webp +250+[[1[-b]]] -frame mrdipsp/05.webp +250+[[1[-b]]] -frame mrdipsp/06.webp +250+[[1[-b]]] -frame mrdipsp/07.webp +250+[[1[-b]]] -frame mrdipsp/08.webp +250+[[1[-b]]] -frame mrdipsp/09.webp +250+[[1[-b]]] -frame mrdipsp/10.webp +250+[[1[-b]]]

我尝试了几种不同的标志和选项,但似乎无法获得清除前一帧的图像。我什至不确定目前是否可行。有任何想法吗?

I've tried several different flags and options and I just can't seem to get the image to clear the previous frame. I'm not even sure if it's possible at this point. Any ideas?

推荐答案

webpmux的文档可以检查此处。文档非常清晰,并提供了很好的示例。但是,生成动画webp有点复杂。

The documentation for webpmux can be checked here. The documentation are pretty much clear and provide good example. However generating the animated webp is a little complex.

尝试以下命令,它应该可以工作:

Try this command and it should work:

webpmux -frame 1.webp +250+0+0+0-b -frame 2.webp +250+0+0+0-b \
-frame 3.webp +250+0+0+0-b -frame 4.webp +250+0+0+0-b \
-frame 5.webp +250+0+0+0-b -frame 6.webp +250+0+0+0-b \
-frame 7.webp +250+0+0+0-b -frame 8.webp +250+0+0+0-b \
-frame 9.webp +250+0+0+0-b -frame 10.webp +250+0+0+0-b \
 -o abc1.webp

重要点:-


  1. 方括号通常表示可选。

  2. 您可以对x和ya进行很少的修改,以使动画呈现愉悦的跳跃效果。 x和y用于给出帧偏移。

  3. 由于您希望在时间结束后删除前一帧,因此必须将mi设置为0进行处理。否则,它将用作背景。

我的输出
不幸的是,imgur不允许webp。这是我的 Google驱动器链接

这篇关于透明的动画WebP不清除框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆