Skip to content

Green Screen Compositing

Key out a green screen subject, clean up the matte, and composite it over a new background with color matching. This is the standard keying-to-composite workflow for still frames: store page screenshots, social media posts, promotional images, and thumbnail assets.

This workflow is built for content creators, indie game devs making promotional material, streamers creating overlay assets, and anyone who shoots on green screen and needs clean composites for stills.

  • A green screen photograph (subject shot against a green backdrop)
  • A background image to composite onto
Image In (green screen) -> Chroma Key ─(image)─→ Composite ─→ Color Balance ─→ Export Image
└──(matte)─→ Mask Refine ──┐ ↑
(mask) │
Image In (background) ────────────────────────────────────────────────────┘
(background)

Chroma Key has two outputs: an image pin (the keyed RGBA) and a matte pin (the same alpha as a standalone Mask). The matte pin is the cleanest way to get an editable mask out of any keyer node — no Mask From Image step required. Routing the matte through Mask Refine and into Composite’s mask input then handles edge cleanup and compositing in one go, no Mask Apply needed.

1. Image In — Load the Green Screen Photograph

Section titled “1. Image In — Load the Green Screen Photograph”

Add an Image In node and load your green screen photograph or extracted video frame. The cleaner the green screen lighting, the easier the key. Even lighting across the backdrop with minimal shadows on the green produces the best results.

If your green screen has visible wrinkles or uneven lighting, you can still get a clean key — you’ll just need to push the Chroma Key’s Similarity higher and spend more time in Mask Refine.

2. Chroma Key — Remove the Green Background

Section titled “2. Chroma Key — Remove the Green Background”

Add a Chroma Key node and connect Image In’s output to its input.

Chroma Key removes pixels that match a target color, turning them transparent on the image output. It also exposes the resulting alpha as a standalone Mask on the matte output — you’ll use both pins in this recipe.

Key parameters:

  • Key Color: Start with pure green (R 0, G 255, B 0). If your backdrop is a specific studio green (many are closer to R 0, G 177, B 64), use the eyedropper on the actual green screen color for a more accurate starting point.
  • Similarity: 0.25. This controls how far from the key color a pixel can be and still count as background. Start at 0.25 and increase in small steps (0.30, 0.35) if green remains visible around the edges. Going too high eats into the subject.
  • Blend: 0.15. This defines the transition zone between fully keyed and fully opaque pixels. A small blend value gives smoother subject edges without introducing translucent halos. Increase to 0.20 if you see hard, aliased edges around hair or fine detail.
  • Spill Suppression: 0.5. Green light bounces off the backdrop and tints the subject’s skin, hair, and clothing. Spill suppression neutralizes this green cast. Start at 0.5 and increase to 0.7 if you can still see green contamination on the subject’s edges or shoulders. Too high can desaturate legitimate greens in the subject’s wardrobe.
  • Clip Black: 0.0. Leave at zero unless you see semi-transparent noise in areas that should be fully transparent. Raising it to 0.05-0.10 clips faint ghost pixels to pure transparency.
  • Clip White: 1.0. Leave at 1.0 unless the subject’s core has semi-transparent patches. Lowering it to 0.95 forces near-opaque pixels to full opacity.

The preview should show your subject on a transparent background (checkerboard) with most of the green removed. The edges may still look rough — that’s what Mask Refine cleans up next.

Add a Mask Refine node and connect Chroma Key’s matte output (not the image output) to its mask input.

This is where you turn a rough key into a broadcast-quality matte. Mask Refine gives you control over edge erosion, feathering, and morphological operations that fix the most common keying artifacts.

Key parameters:

  • Erode / Dilate: 1 to 2. Positive values shrink the mask, which trims the green fringe that almost always remains at the subject’s edges after keying. Start at 1 and increase to 2 if you still see a thin green outline. Going higher than 3 visibly cuts into the subject.
  • Feather: 1.5 to 2.0. This softens the mask edges, producing natural-looking transparency at the boundary between subject and background. Without feathering, composited subjects look cut out with scissors. A value of 1.5 handles most cases; increase to 2.5 for subjects with soft or wispy hair.
  • Operation: None for most subjects. If there are holes inside the mask (e.g., between fingers, in jewelry, or in mesh fabric), set to Close. Close fills small gaps in the mask while preserving the outer edge shape.
  • Kernel Shape: Ellipse (default). An elliptical kernel produces rounder, more natural morphological results than a rectangle.
  • Kernel Size: 3. Keep it small — larger values distort fine detail.
  • Iterations: 1. One pass is usually enough for Close operations. Increase to 2 only if holes persist after the first pass.
  • Invert: false.

Toggle the node on and off to compare the raw matte against the refined one. The edges should look noticeably cleaner, with no green fringe and a natural soft falloff.

Add a second Image In node and load your background image — a scene, promotional art, game environment, stream overlay background, or any image you want the subject placed into.

For the most convincing composite, choose a background whose lighting direction roughly matches the green screen photograph. A subject lit from the left composited onto a background lit from the right looks immediately wrong, even to untrained eyes.

5. Composite — Layer the Subject Over the Background with the Refined Mask

Section titled “5. Composite — Layer the Subject Over the Background with the Refined Mask”

Add a Composite node. Make three connections:

  • Connect the second Image In’s output (background) to the background input.
  • Connect Chroma Key’s image output (the keyed subject) to the overlay input.
  • Connect Mask Refine’s output (the cleaned matte) to the mask input.

The mask input restricts the blend region to exactly the cleaned matte, which means the rough alpha from Chroma Key gets overridden by the refined version — no separate Mask Apply node needed. The Composite node handles the cleanup and the layering in one operation.

Key parameters:

  • Blend Mode: Normal. The subject has transparency from the keying process plus the refined mask, so Normal compositing places it cleanly over the background.
  • Resize Mode: Fit if the subject and background are different dimensions. Fit scales the overlay to fit within the background frame without cropping. Use None if both images are already the same resolution.
  • Mask Fit: None unless your background and matte are different sizes. The matte and the keyed image come from the same source, so they’re guaranteed to match.
  • Opacity: 1.0. Full strength for the subject layer.

The result is your subject composited over the new background with broadcast-quality edges. At this point the geometry looks right, but the color temperature probably doesn’t match — that’s the next step.

6. Color Balance — Match the Subject to the Background

Section titled “6. Color Balance — Match the Subject to the Background”

Add a Color Balance node and connect Composite’s output to its input.

This is what sells the composite. A green screen subject is typically lit with neutral or slightly cool studio lighting, while the background might be a warm interior, a golden-hour outdoor scene, or a stylized game environment. Shifting the subject’s color temperature to match the background unifies the lighting and makes the composite believable.

Key parameters for a warm background (interior, golden hour):

  • Cyan-Red Midtones: +10 to +15. Pushes the subject’s midtones warmer.
  • Yellow-Blue Midtones: -5 to -10. Pulls midtones slightly toward yellow, reinforcing the warm shift.
  • Magenta-Green Midtones: 0. Leave neutral unless the background has a strong magenta or green cast.

Key parameters for a cool background (overcast outdoor, sci-fi environment):

  • Cyan-Red Midtones: -10 to -15. Pushes midtones toward cyan.
  • Yellow-Blue Midtones: +5 to +10. Pulls midtones toward blue.
  • Magenta-Green Midtones: 0.

For both scenarios:

  • Preserve Luminosity: true. This prevents the color shift from brightening or darkening the overall image, keeping the subject’s exposure consistent.
  • Leave shadow and highlight sliders at 0 unless the background has distinctly different color temperatures in its shadow and highlight regions.

Toggle the node on and off to compare. The matched version should feel like the subject was photographed in the same environment as the background.

7. Export Image — Save the Final Composite

Section titled “7. Export Image — Save the Final Composite”

Add an Export Image node and connect Color Balance’s output to its input.

Set Format to PNG if you need transparency preserved in the output (e.g., for stream overlays where the composite itself sits over more layers). Set to JPEG at quality 92 for social media, thumbnails, or promotional images where file size matters. Set File Name to something descriptive like composite-subject-on-background.

Click Export or press Ctrl+Shift+E to save.

A clean composite with the green screen subject naturally integrated into the new background. The matte edges are tight with no green fringe, the edge transparency is soft and natural, and the color temperature matches the background scene. The entire pipeline processes in real time, so you can swap backgrounds or adjust the Color Balance and see the result instantly.

  • Blue screen instead of green: change the Chroma Key’s Key Color to blue (R 0, G 0, B 255) and adjust Similarity accordingly. Blue screen is common for subjects wearing green clothing or when compositing onto scenes with heavy vegetation.
  • White or black background removal with Luma Key instead of Chroma Key. Luma Key also exposes a matte output — the streamlined matte → Mask Refine → Composite-mask flow works identically. Useful for removing white paper backgrounds from scanned art or black backgrounds from VFX elements like fire, smoke, and explosions.
  • Add a contact shadow by inserting a Drop Shadow node between Chroma Key’s image output and Composite’s overlay input. Set Offset X to 0, Offset Y to 4-8, Blur Radius to 16-24, and Opacity to 0.3 for a natural ground shadow beneath the subject that anchors them to the background.
  • Fine-tune contrast with Curves by inserting a Curves node after Composite and before Color Balance. A subtle S-curve that lifts the midtones and pulls down the shadows helps the subject’s tonal range match a high-contrast background, especially for promotional and game art.
  • When you do need the matte as an image (e.g., you want to feed it into another node that only takes IMAGE inputs), drop a Mask From Image node anywhere downstream and pull from Chroma Key’s matte. The streamlined flow above just doesn’t need that detour.