Skip to content

Light wrap compositing with a free local PNG tool

Blend background color into a foreground edge, compare before and after, and export a composite or transparent foreground PNG with a free local light-wrap tool.

FREE LOCAL COMPOSITING TOOL

Try light wrap on a PNG composite

Use the original geometric example or your own matching PNGs · Files stay on your device

In use: Original geometric portrait and gradient · 384 × 256

Same dimensions · Up to 1024 × 1024 and 10 MB per PNG · No automatic matting or resizing

An illustrative edge-color blend in encoded RGB, not physically based relighting or a Nuke preset · Foreground alpha stays unchanged · Before mode also applies to downloads

Original geometric portrait composite comparing zero and moderate edge-color wrap

For a related production step, see the straight and premultiplied alpha lab.

A clean cutout can still look pasted onto a new background. Its edge may remain too isolated from a bright surrounding area. Light wrap is a finishing choice for that boundary, especially when you are combining an AI-created character or product with another image. It does not replace a good matte, a contact shadow or a coherent lighting direction.

What light wrap does in compositing

Light wrap introduces background color near the foreground boundary. Foundry's Nuke documentation describes using the background and foreground together and applying the wrap before the final merge. It distinguishes the spread and strength of the effect, with the default effect kept inside the foreground alpha.

The local tool on this page is our own illustrative blend, not a Nuke node or a physically based light simulation. It operates on encoded RGB values decoded by the browser. Its width and amount controls do not reproduce another application's presets or scene-linear color pipeline.

Try a local PNG composite

Start with the original geometric portrait and gradient, then compare the before checkbox with the wrapped version. For your own images, choose a foreground PNG with visible artwork and some transparency, plus a fully opaque background PNG of exactly the same dimensions. Both must be at most 1024 by 1024 pixels and 10 MB each.

Choose both files, then press Apply selected PNGs. Files are decoded and processed on your device without an upload request. The tool does not resize, key, segment or remove a background. If a pair fails validation, the previous valid pair remains displayed and the message explains the problem.

Understand the original edge blend

The tool blurs the foreground alpha and each background RGB channel with a clamped-edge box filter. It forms an inside-edge weight from twice the positive difference between the original alpha and the blurred alpha, limits that weight to one, then scales it by the selected amount. It blends foreground RGB toward the blurred background color using that weight.

The foreground alpha is preserved. The composite then places that foreground over the original opaque background. The foreground download retains transparency; the composite download is opaque. When Show before is selected, the amount used for both preview and download is zero, even if the amount slider still displays a higher setting.

Download the original algorithm source and the sample foreground and sample background. The example is original mathematical artwork rather than a photographed actor or an AI segmentation result. Browser color decoding and transparent-color rounding can affect pixel values.

Start with the matte and lighting

  1. Inspect the foreground on a contrasting background and correct missing or unwanted edge detail.
  2. Match the broad color, contrast and intended lighting direction before applying wrap.
  3. Use a small width and moderate amount, then compare against zero wrap.
  4. Check hair, fingers, product lettering and high-contrast corners for lost detail.
  5. Review the composite at actual delivery size before accepting it.

A wide luminous border can make the cutout more visible. If the edge looks wrong at zero wrap, investigate the matte or source lighting first. For video, inspect the changing edge through the whole shot; this browser tool processes still PNGs and does not guarantee temporal consistency.

Use it in an AI product or character workflow

Prepare the approved product or character image in Clout Image and Video, using an operation supported by the selected model. If you need a separate foreground, obtain and inspect that matte in an appropriate editor. An attractive generated background does not automatically supply the missing alpha channel.

For an original courier placed in a bright archive, keep the brighter background region near the intended edge. Compare a restrained wrap with the untreated composite, and inspect the coat silhouette and face. Do not treat edge blending as evidence that the entire character was illuminated correctly by the new environment.

The rotoscoping guide covers the selection and matte-review stage. The native cutout camera study addresses a different issue: how separated layers behave when the viewpoint moves. Keep those tasks separate in the production brief so a depth problem is not mistaken for an edge-color problem.

Export and inspect both deliverables

Save the opaque composite for review and the transparent wrapped foreground when you need to continue compositing elsewhere. Confirm the dimensions and alpha behavior in the destination editor. Keep the original pair and settings too, especially when the final output will enter a different color-management pipeline.

Sources and testing

Official sources checked October 24, 2026. Original Blender renders, mathematical compositing and planning files by Clout. No FilmFlow execution, generative-model inference or independent quality benchmark is claimed.

Questions, answered

Frequently asked questions

What is light wrap

It blends background color near a foreground boundary to help integrate a composite.

Does the tool upload my PNG files

No. The chosen PNGs are decoded and processed locally in the browser.

Does the foreground export preserve alpha

The algorithm leaves the foreground alpha unchanged. The separate composite export is opaque.

Can I use different image dimensions

No. Both PNGs must match exactly, be at most 1024 by 1024 and be no larger than 10 MB each. The background must be fully opaque.

Does light wrap fix a bad matte

No. Correct missing detail, unwanted regions and other matte problems before using edge color as a finishing adjustment.