初级：如何在 GIMP 中制作 GIF
GIMP GIF
制作一个 GIF 可能是一件很有趣的事，很多用户可能都想如何制作一个 GIF。你可以使用功能强大的开源图像编辑软件 [GIMP](https://www.gimp.org/) 创建一个非常简单的 GIF。


在这篇 GIMP 教程中，我将向你展示如何在 GIMP 中创建一个简单的 GIF。


### 在 GIMP 中制作一个 GIF


![](/data/attachment/album/202006/06/220840r6w376v930whuub3.jpg)


使用 GIMP 作为一个动画制作工具需要你把每个图层都看作动画的一帧。在这篇教程中，我将创建一个简单的基于我们的徽标的网页横幅。我将使用 2 个图像作为我的图层，但当你制作自己的 GIF 时，你可以随意添加更多的图像。


我在这里使用的方法叫做“组合法”，在这个方法中，新的帧被添加到先前的帧中。我的想法是制作一个“频闪”的网页横幅，来在对一些重要的事情引起注意。


我假设你已经 [在 Ubuntu 或其它使用的操作系统中安装了 GIMP](https://itsfoss.com/gimp-2-10-release/)。让我们开始制作 GIF 吧。


#### 步骤 1


从“文件”菜单中，单击“作为图层打开”，并选择你想包含在 GIF 中的所有图像。然后单击“打开”。


![](/data/attachment/album/202006/06/220922ldsl4d0drfs4d0dj.jpeg)


你可以排序图层标签页中的图像。GIF 的帧序列将从最下面的图层开始，从下到上运行每一层图层。


![](/data/attachment/album/202006/06/221008zdge7siw7gzzqq4w.jpg)


从主菜单中选择“滤镜”，接着选择“动画”，最后单击“优化（用于 GIF）”。


![](/data/attachment/album/202006/06/221116uoaee6dgqdazejo3.png)



> 
> “优化”做了什么？
> 
> 
> 优化会检查每一个图层，如果来自前一帧的信息在下一帧中没有改变，则重复使用这些信息。它只存储新更改的像素值，并清除任何重复的部分。
> 
> 
> 如果一帧与前一帧完全相同，那么它将完全删除这一幅帧，并且前一帧将恰当地在屏幕上停留更长时间。
> 
> 
> 


要查看该 GIF，从主菜单中单击“滤镜”，接着单击“动画”和“回放”。


![](/data/attachment/album/202006/06/221231qrm3azaycmwld99y.png)


按下“回放”按钮来启动 GIF。要保存该 GIF，在文件菜单上选择“文件”，单击“导出为”。


![](/data/attachment/album/202006/06/221409rfb85izmfsok1t5l.png)


命名你的 GIF，并选择你想将其保存到的文件夹。在“选择文件类型”时，选择 “GIF 图像”。


![](/data/attachment/album/202006/06/221333u7fdgtb7vn7rv7ej.png)


当提示时，选择“作为动画”、“反复循环”,设置期望的延迟值，并单击“上面输入的延迟用于所有帧”来生效。


最重要的选项是设置帧处理动作为“累积各图层（组合）”，以便为我们的横幅获取“频闪”效果。单击“导出”作为最后一个步骤。


![](/data/attachment/album/202006/06/221533i6mu8oomhzkc6hkb.png)


你的 GIF 已经准备好了！


![](/data/attachment/album/202006/06/221642cn99ttsku9l8n8kn.gif)


这是一个浅显易懂的示例，不过 GIMP 在动画创作方面有很多能力，需要大量的学习和实践才能掌握它。




---


via: <https://itsfoss.com/make-gif-in-gimp/>


作者：[Dimitrios Savvopoulos](https://itsfoss.com/author/dimitrios/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[robsean](https://github.com/robsean) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Making a GIF can be fun and many users would like to know how to make one. You can create a GIF very easily with [GIMP](https://www.gimp.org/?ref=itsfoss.com), the powerful open-source image editing software.

In this GIMP tutorial, I’ll show you how to create a simple GIF in GIMP.

## Making a GIF in GIMP

Using GIMP as an animation tool requires you to think of every layer as of an animation frame. In this tutorial, I will create a simple web banner based on It’s FOSS logo. I will use 2 images as my layers but you are welcome to add more when you make your own.

The method that I use here is called “the **combine** method”, in which the new frame is added to the previous frame. My idea is to make a “flashing” web banner, to draw the attention to something important.

I presume that you have [already installed GIMP in Ubuntu](https://itsfoss.com/gimp-2-10-release/) or whichever operating system you are using. Let’s start making the GIF.

### Step 1

From the File menu, click on **Open as Layers** and select all the images you want to include in the GIF. Then click **Open**.

![Open As Layers in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/1.-open-as-layers.jpeg)

You can order your images in the layers tab. The GIF sequence will start with your bottom layer and run through each layer bottom to top.

![Order of layers in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/layers-order.jpg)

From the main menu select **Filters**, then **Animation** and finally click **Optimise (for GIF)**.

![Creating GIF in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/2.-optimize-for-gif-1.png?fit=800%2C647&ssl=1)

**What “Optimise” does?**

Optimise examines each layer, and reuses information from previous frames if they haven’t changed at the following frame. It only stores new values for pixels that change, and purges any duplicate parts.

If a frame is exactly the same as the previous one, it removes that frame completely and the previous frame just stays on the screen for longer.

To view GIF, from the main menu click on **Filter** then **Animation** and **Playback**.

![Make GIF in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/3.-playback.png?fit=800%2C692&ssl=1)

Press the **Playback** button to start GIF. To save GIF on the File Menu select **File**, click on **Export as**.

![Save GIF in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/4.-export-as.png)

Name your GIF and choose the folder you want to save it in. On “**Select File Type**“, choose GIF Image.

![Save GIF in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/5.-save-as-gif.png?fit=800%2C677&ssl=1)

When prompted select ‘As Animation’, ‘Loop Forever’, set the desired delay value and to take effect click on “Use delay entered above for all frames”.

The most important option is to set the frame disposal action as “**Cumulative layers (combine)**” to get the “**flashing**” effect for our banner. Click Export as a final step.

![Export GIF in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/6.-export-options-1.png)

**Your GIF is ready!**

![It's FOSS gif created in GIMP](https://itsfoss.com/content/images/wordpress/2020/05/its-foss-logo.gif?fit=800%2C417&ssl=1)

This was an easy-to-follow, simple example, although GIMP has a much greater depth in animation creating and requires a good amount of study and practice to master it.

If you are interested in more GIMP tutorials, you may[ read how to outline text in GIMP](https://itsfoss.com/gimp-text-outline/). Stay tuned at It’s FOSS for more such useful tips in the future. [Subscribing to the weekly newsletter](https://itsfoss.com/subscribe-to-newsletter/) is the best way to stay updated. Enjoy!