Skip to content

Does lossless WebP preserve color values under completely transparent pixels?

Decoded visible output can be lossless while hidden RGB values change. Google's cwebp documentation distinguishes preserving invisible color samples with its explicit exact option. This matters if a later process intentionally recovers those samples.

KEEP THE INTENDED APPEARANCEAISwapLab team · Editorial methodPublished 2 min read
Try the workflowExplore 67 Image Skills4.44 free welcome credits · No subscription

Define what is being compared

If the asset only needs to look identical when composited, compare on the intended backdrop. If invisible RGB carries required data, include all channels in the acceptance check.

Use a controlled pixel

Create one visible pixel and one fully transparent pixel with a known nonzero color. Encode the small test using the chosen settings, decode it, and compare each channel.

Keep intentional data separate

Store processing metadata and editable layers in a format intended to preserve them. Avoid relying on invisible pixels for information a reviewer cannot see.

Pass condition

The selected file preserves either visible appearance or the full pixel contract, whichever the next step requires.

Sources

Your video. Your characters.

Choose a scene, check the people, then add your photos.

Try the workflow