gif动画修改
Comedians would tell you that timing is the most important part of any joke. The same could be said about animated GIFs; whether they're used as a meme or to illustrate a process, the speed of an animated GIF can effect its effectiveness. With that idea in mind, I set about trying to figure out how to modify the speed of an animated GIF; let's explore it!
喜剧演员会告诉您,时间是任何笑话中最重要的部分。 动画GIF也可以这样说。 无论是用作模因还是说明过程,动画GIF的速度都会影响其效果。 考虑到这个想法,我开始尝试弄清楚如何修改动画GIF的速度。 让我们来探索它!
Let's use the following GIF as our sample:
让我们使用以下GIF作为示例:
The first step in modifying a GIF's speed is determining the GIF's root speed; to determine this ratio, we'll use ImageMagick's identify
command:
修改GIF速度的第一步是确定GIF的根速度。 为了确定该比例,我们将使用ImageMagick的identify
命令:
identify -verbose respect.gif | grep Delay
> Delay: 5x100
> Delay: 5x100
The ratio returned represents the hundredths of a second between the animated GIF's frames.
返回的比率代表动画GIF帧之间的百分之一秒。
To speed up the animation, we can use a smaller ratio:
为了加快动画速度,我们可以使用较小的比例:
convert -delay 1x30 respect.gif respect-fast.gif
To slow down the, we can use a larger ratio:
为了降低速度,我们可以使用更大的比率:
convert -delay 1x100 respect.gif respect-slow.gif
Animated GIFs still have a place on the web; optimizing their effectiveness remains important. If you need to speed up or slow down an animated GIF, look no further than ImageMagick!
动画GIF仍在网络上占有一席之地; 优化其有效性仍然很重要。 如果您需要加快或降低动画GIF的速度,别无所求!
翻译自: https://davidwalsh.name/how-to-change-animated-gif-speed
gif动画修改