after effects color overlay png

After Effects: Master Color Overlays with PNG

By Laura Davis
AD

Exploring the realms of graphics editing? You're likely to have encountered the precarious terrain of transparencies and overlays, especially when working with Adobe After Effects. One question that often crops up is, "How do I use a PNG with an alpha channel, or a color overlay, in After Effects?" Today, we'll delve into this topic, providing a step-by-step guide along with some practical tips.

PNGs, or Portable Network Graphics, are a format of choice for maintaining image quality, especially when dealing with transparency. The alpha channel in a PNG file allows you to define opacity levels, making it highly versatile for layered projects like those found in After Effects.

Understanding PNGs in After Effects

After Effects treats PNG files as having an alpha channel by default, provided they have one. This means you can compost them directly, allowing the background to show through where the image is transparent. However, things can get tricky when you want to add a color overlay.

AD
blurry image of an orange and blue object in the air with stars around it
blurry image of an orange and blue object in the air with stars around it
an orange and black background with some white dots in the center, as well as red light
an orange and black background with some white dots in the center, as well as red light
overlay from my recent tutorial on @axellapple
overlay from my recent tutorial on @axellapple

Here's the thing - a typical PNG, even with an alpha channel, might not display as expected when you add a color overlay. This is because After Effects applies the overlay before considering the alpha channel. Let's explore how to circumvent this issue.

Preparing Your PNG for Color Overlay

To apply a color overlay to a PNG with an alpha channel without losing its transparency, you'll first need to reverse the order of operations in your mind. Instead of adding the color overlay first, you should use a matte to define the area where the overlay should appear.

an orange and red blurry background with the sun in the distance
an orange and red blurry background with the sun in the distance
Red and black overlay
Red and black overlay
a blurry image of blue and black water
a blurry image of blue and black water

To do this, follow these steps:

  • Create a new solid in After Effects. Go to Layer > New > Solid.
  • Set the color of the solid to the desired color of your overlay.
  • Add your PNG image to the composition. Make sure it's placed above the solid in the timeline.
  • Pre-compose the PNG and the solid by right-clicking on them in the timeline and selecting Pre-compose.

Applying the Matte

The order is now set up correctly - your transparent PNG will be composited first, then the color overlay will be applied where the image is not transparent. All that's left is to create a matte for the overlay.

AD

Here's how you do it:

Filter Overlays, Pfp Effects Overlay, Galaxy Effects, Overlay Color, Galaxy Background For Sublimation, Glitter Overlay, Colorful Glitter Overlay, Purple Glitter Sparkles Overlay, Colorful Fireworks Overlay
Filter Overlays, Pfp Effects Overlay, Galaxy Effects, Overlay Color, Galaxy Background For Sublimation, Glitter Overlay, Colorful Glitter Overlay, Purple Glitter Sparkles Overlay, Colorful Fireworks Overlay
a blurry photo of an orange light
a blurry photo of an orange light
an abstract blurry background with different colors
an abstract blurry background with different colors
°blue overlay°
°blue overlay°
purple and black background with lots of small objects in the dark space, including stars
purple and black background with lots of small objects in the dark space, including stars
an orange and white background with squares
an orange and white background with squares
  1. In your pre-composition, switch the blend mode of the solid to Add. This will make the solid invisible in the composition, but it will still be there to apply the matte.
  2. Go to Effect > Mathematics > Inverse Matte and apply it to the PNG layer.
  3. Tweak the matte as needed, either by adjusting the Invert parameter or by painting on the matte using the Pen tool.

Practical Tips for Working with PNGs and Color Overlays

Now that you've mastered the basic technique, here are a few tips to take your work to the next level:

Use Alpha Channels for Advanced Compositing

Alpha channels aren't just useful for maintaining transparency. They can also be used for advanced compositing tasks, such as-grained control over blend modes or applying different effects to different parts of an image.

AD

Opacity Masks for Subtle Effects

If you want a color overlay that fades in or out over time, an opacity mask can be a useful tool. Create an opacity mask on your pre-composition and animate the opacity controller to achieve the desired effect.

//☮︎︎verlays//
//☮︎︎verlays//

Remember, the key to working with PNGs and color overlays in After Effects is understanding the order of operations. By mastering this, you'll unlock a powerful tool for creating sophisticated composites. Happy editing!

AD