如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

Sometimes a GIF alone isn’t enough; sometimes you want to add a little bit of text. Photoshop can do the job, but the process isn’t as intuitive as you’d imagine, especially if you’ve never edited animation in Photoshop before.

有时仅靠GIF是不够的。 有时您想添加一些文本。 Photoshop可以完成这项工作,但是该过程并不像您想象的那样直观,尤其是如果您以前从未在Photoshop中编辑动画时。

When you import a GIF in Photoshop, you’ll notice that every frame shows up in “Layers.” Notably, changing the order of the layers does not change the order that frames play back in. What’s going on, exactly?

在Photoshop中导入GIF时,您会注意到每一帧都显示在“图层”中。 值得注意的是,更改图层的顺序不会更改帧播放的顺序。到底发生了什么?

To find out, you need to open the Timeline window, which you’ll find under Window > Timeline.

要找出答案,您需要打开“时间轴”窗口,该窗口可在“窗口”>“时间轴”下找到。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

This will add a new window, where you can see the frames in your GIF, and even hit the play button to preview playback.

这将添加一个新窗口,您可以在其中查看GIF中的帧,甚至可以点击播放按钮来预览播放。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

Things can get a little confusing, so let’s review. For the purposes of our exercise…

事情可能会有些混乱,所以让我们回顾一下。 为了我们的锻炼目的……

  • The Timeline window lets you control what order your frames play back in, and to preview your animation.

    通过“时间轴”窗口,您可以控制帧的播放顺序以及预览动画。

  • The Layers window controls which frames transparent overlays will show up over. An overlay at the top of the list will show up over all frames, for example.

    层”窗口控制透明叠加层将显示哪些帧。 例如,列表顶部的叠加层会显示在所有帧上。

With access to this, let’s go ahead and add our overlay. For this example, we’ll be adding text, so create a text box as you normally would.

可以访问此文件,让我们继续添加叠加层。 对于此示例,我们将添加文本,因此请像往常一样创建一个文本框。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

As always, your text will be added in a new layer. Go ahead and drag this overlay to the top of your layers list.

与往常一样,您的文本将添加到新图层中。 继续并将此叠加层拖到图层列表的顶部。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

Just like that, your text overlay will show up over all of your GIF.

这样,您的文字叠加层就会显示在您的所有GIF中。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

If that’s all you want to do, you’re done! But if you want your overlay to show up at a certain point in the animation, things get a little more complicated. Drag your text box to the middle to see what I mean.

如果这就是您想要做的,那就完成了! 但是,如果您希望叠加层显示在动画中的某个点,则情况会变得有些复杂。 将您的文本框拖到中间,以了解我的意思。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

In my example, doing this caused the text to show up for the first half of the frames, then disappear.

在我的示例中,这样做导致文本在帧的前半部分出现,然后消失。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

That’s probably the opposite of what you want, and the only way to fix it is to rearrange all of your layers. Drag the early frames to the top of the list, put your text in the middle.

这可能与您想要的相反,并且解决该问题的唯一方法是重新排列所有图层。 将早期的帧拖到列表的顶部,将文本放在中间。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

This makes it possible for your text to show up halfway through the GIF. You can even add another bit of text, later.

这使您的文本有可能在GIF中途显示。 您甚至可以稍后再添加一些文本。

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

Get it?

得到它?

如何在Photoshop中的动画GIF上覆盖文本(或其他内容)

Getting things just right can take a while, but play with the layer order long enough and your text will show up exactly when you want it to.

正确处理可能会花费一些时间,但是按图层顺序播放足够长的时间,并且您的文本会准确显示在您想要的时候。

When you’re ready, I suggest you click File > Save For Web to export the GIF; you’ll get a lot of control over the quality, which can help reduce file size. Enjoy your newly complete GIF!

准备就绪后,建议您单击“文件”>“另存为Web”以导出GIF。 您将可以很好地控制质量,从而有助于减小文件大小。 享受您新近完成的GIF!

翻译自: https://www.howtogeek.com/286603/how-to-overlay-text-or-anything-else-over-animated-gifs-in-photoshop/